...

/

Managing Instance Types Rules

Managing Instance Types Rules

Learn the steps to make the returned instance the same type as the instance on which the method is called.

Sticking to the base type

We’ll create a base class and a derived class and learn ways to manage the types of instances the base methods create.

Example

Let’s start with a class named Names and a derived SpecializedNames class.

Access this course and 1400+ top-rated courses and projects.