What is the benefit of subclass?

Q

What is the benefit of subclass?

✍: Guest

A

Generally: The sub class inherits all the public methods and the implementation.
The sub class inherits all the protected methods and their implementation.
The sub class inherits all the default(non-access modifier) methods and their implementation.
The sub class also inherits all the public, protected and default member variables from the super class.
The constructors are not part of this inheritance model.

2012-08-16, 2257👍, 0💬