(?)
Quotes are added by the Goodreads community and are not verified by Goodreads. (Learn more)

“Java includes inheritance, or the ability to derive new classes from existing classes. The derived class, also called a subclass, inherits all the data and functions of the existing class, referred to as the parent class. A subclass can add new data members to those inherited from the parent class. As far as methods are concerned, the subclass can reuse the inherited methods as is, change them, and/or add its own new methods. For example, the subclass VerbosePerson could be derived from the class Person, with the difference between instances of the Person class and instances of the VerbosePerson class being the way they identify themselves. The following code creates the subclass VerbosePerson and changes only the implementation of the method identifySelf:”

Suresh Basandra, C, C++ and Java Questions and Answers
Read more quotes from Suresh Basandra


Share this quote:
Share on Twitter

Friends Who Liked This Quote

To see what your friends thought of this quote, please sign up!

0 likes
All Members Who Liked This Quote

None yet!


This Quote Is From

C, C++ and Java Questions and Answers C, C++ and Java Questions and Answers by Suresh Basandra
6 ratings, average rating, 0 reviews

Browse By Tag