What is wrong with PHP object-oriented method rewriting?
A. The child class must inherit the parent class
B. Subclasses can override existing methods of the parent class
C. Subclasses will call parent methods after rewriting
D. The child class can also have an attribute with the same name as the parent class for attribute override.
Answer:C
What is wrong with PHP object-oriented method rewriting?
A. The child class must inherit the parent class B. Subclasses can override existing methods of the parent class C. Subclasses will call parent methods after rewriting D. The child class can also have an attribute with the same name as the parent class for attribute override.