Im trying to understand the various definitions, other students do not quite agree with me.
My definitions, please correct them if wrong:
Base class is the top most class in the hierarchy.
Super and Ancestor class, any class higher up in the hierarchy (including the base class)
Parent class, the next class up in the hierarchy.
Yes. Parent Classes are the direct superclasses (up to one level in the hierarchy) of your class. Depending on your programming language, a class can have multiple parents.
While an ancestor class, is any superclass of your class (a parent class, a parent of a parent class and so on).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With