...

/

The Syntax and Terminologies

The Syntax and Terminologies

Learn how to use inheritance syntactically and the terminologies related to it.

The terminologies

A new class is created based on an existing class in Inheritance, hence we use the terminology below for the new class and the existing class:

  • SuperClass (Parent Class or Base Class): This class allows the re-use of its non-private members in another class.
  • SubClass (Child Class or
...