In PHP, an abstract class is defined using the abstract keyword.

  • TRUE
  • FALSE
  • nan
  • nan
In PHP, an abstract class is indeed defined using the abstract keyword. This keyword is placed before the class keyword and is used to indicate that the class is intended to be an abstract class. Abstract classes are meant to be inherited by other classes and cannot be instantiated directly. Abstract classes can contain abstract methods (without implementation) as well as non-abstract methods. The abstract keyword is essential for properly defining an abstract class in PHP. For more details, refer to: http://php.net/manual/en/language.oop5.abstract.php
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *