Please put your code between code tags. Once you extend a class, the Subclass inherits all members of the parent class which are marked as public, protected or, if the Subclass is in the same package, default. when you assign the instance of a Subclass to the Super Type, and invoke a method on it that is overwritten in the subclass, ...