2080 12

BIT301 ยท 2080 ยท 5 marks

Write a PHP program to demonstrate the concept of inheritance.

Write a PHP program to demonstrate the concept of inheritance. [5]

Web Technology IIChapter 6: Object Oriented ProgrammingInheritance and class hierarchy

Inheritance is an OOP concept where a child class (derived class) acquires the properties and methods of a parent class (base class) using the extends keyword in PHP. --- --- --- Concept Description ------ extends Used to inherit parent class into child class parent::construct() Calls the constru...