Please enable JavaScript to use CodeHS

AP CSA: MOD-3.C.3

CodeHS Lessons

If S is a subclass of T, then a reference of type T can be used to refer to an object of type T or S.

12.15 Polymorphism
16.5 Creating References Using Inheritance
9.5 Creating References Using Inheritance
6.15 Polymorphism