Home Segments Top Top Previous Next

341: Mainline

In general, you can assign a subclass instance to a superclass variable. You cannot, however, call any of the subclass's methods with that superclass variable as the target. Only the methods defined or declared in the superclass, and its superclasses, are available.