Podcast
Questions and Answers
It enables a class to acquire properties and methods from a parent class
It enables a class to acquire properties and methods from a parent class
inheritance
The child class (derived class), class that inherits from class
The child class (derived class), class that inherits from class
subclass
Any class can function as a parent class, and thus the syntax for creating one is identical to that of a standard class
Any class can function as a parent class, and thus the syntax for creating one is identical to that of a standard class
base
Example: create a ______ named Faculty, with firstname and lastname properties, and a printname method
Example: create a ______ named Faculty, with firstname and lastname properties, and a printname method
Signup and view all the answers
To inherit the features of a parent class in your child class, include the parent class as a parameter
To inherit the features of a parent class in your child class, include the parent class as a parameter
Signup and view all the answers