Vidyalelo
PHP · Q27

Object Oriented Concept

Programming · PHP · question 27

Q27

Which one of the following class can not be instantiated?

A.
inherited class
B.
abstract class
Answer
C.
constant class
D.
every class

Answer: Option B

Solution

Answer: Option B
Solution:
An abstract class cannot be instantiated. Instead it defines (and, optionally, partially implements) the interface for any class that might extend it.