Computer Science, asked by sarinakafle61, 19 days ago

how can you implement be inheritance in PHP?​

Answers

Answered by MissPhenomenal
0

ANsWeR :-

Here's how to implement inheritance:

  • Begin with an existing class. ...
  • Create your new class with the extends keyword. ...
  • You can access public and protected elements of the parent, but not private ones. ...
  • Add new properties and methods. ...
  • You can also overwrite parent behavior.
Answered by s9b1544pintu6307
0

Answer:

1Begin with an existing class.  

2Create your new class with the extends keyword.  

3You can access public and protected elements of the parent, but not private ones.  

4Add new properties and methods.

Explanation:

Similar questions