InterviewSolution
| 1. |
What Is Inheritance In Php? |
|
Answer» Inheritance is a well-established programming principle, and PHP makes USE of this principle in its object model. This principle will affect the way many classes and OBJECTS relate to one another. For example, when you EXTEND a class, a subclass inherits all of the public and protected METHODS from the PARENT class. Inheritance is a well-established programming principle, and PHP makes use of this principle in its object model. This principle will affect the way many classes and objects relate to one another. For example, when you extend a class, a subclass inherits all of the public and protected methods from the parent class. |
|