Type Casting and Classes
Learn to apply type casting to classes.
We'll cover the following
Introduction
In a previous lesson, we touched upon the topic of type casting and saw some examples where we cast primitive types between one another:
byte age = 24;
int ageAsInt = age; // Implicit cast
In this lesson, we’ll discuss type casting in the context of classes. Consider a set of following classes:
Get hands-on with 1400+ tech skills courses.