InterviewSolution
| 1. |
Write A Note About Inheritance? |
|
Answer» Inheritance is a mechanism that allows the object of one class to utilize the form and MODEL or BEHAVIOR of another class. A class derived from the base class inherits attributes, functions, or methods that implement the base class to the derived class and ALSO EXTENDS the derived class by overriding functions and adding new ADDITIONAL attributes and functionalities. Inheritance is a mechanism that allows the object of one class to utilize the form and model or behavior of another class. A class derived from the base class inherits attributes, functions, or methods that implement the base class to the derived class and also extends the derived class by overriding functions and adding new additional attributes and functionalities. |
|