how can you implement be inheritance in PHP?
Answers
Answered by
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
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