PHP - Inheritance and Polymorphism
Which of the following is the correct way to declare an abstract method in a PHP abstract class?
abstract before the function signature and have no body (no curly braces).abstract public function myMethod();. Options B and D have bodies or wrong order, and C uses incorrect syntax.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions