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
Loading...
Related Quiz
- The $_SERVER superglobal in PHP is an associative array.
- After installing PHP, you can immediately start running PHP scripts without restarting the server.
- The $_POST superglobal in PHP is often used to handle form data.
- Which of the following are reasons to use comments in PHP code?
- PHP was originally created by ______ in the year ______.