Which Of The Following Isare True For An Abstract Classbr I #105
Which of the following is/are true for an abstract class?<br /> i) Abstract classes in PHP are declared with the help of abstract keyword.<br /> ii) A class is declare abstract by using the keyword implements.<br /> iii) It is a class that really isn’t supposed to ever be instantiated but instead serves as a base class.<br /> iv) Attempting to instantiate an abstract class results in an error.
This multiple choice question (MCQ) is related to the book/course gs gs107 PHP: Hypertext Preprocessor. It can also be found in gs gs107 PHP OOPs - PHP OOPs Advanced - Quiz No.1.
Which of the following is/are true for an abstract class?
i) Abstract classes in PHP are declared with the help of abstract keyword.
ii) A class is declare abstract by using the keyword implements.
iii) It is a class that really isn’t supposed to ever be instantiated but instead serves as a base class.
iv) Attempting to instantiate an abstract class results in an error.
i) Abstract classes in PHP are declared with the help of abstract keyword.
ii) A class is declare abstract by using the keyword implements.
iii) It is a class that really isn’t supposed to ever be instantiated but instead serves as a base class.
iv) Attempting to instantiate an abstract class results in an error.
Only i)
Only iii)
ii) and iv)
ii), iii) and iv)