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.

A. Only i)
B. Only iii)
C. ii) and iv)
D. ii), iii) and iv)
Answer» B. Only iii)


Discussion

No Comment Found