Question 54Asked in UGC NET Computer Science, August 2016 (Paper II & III, Selected Questions)
Which of the following is not a correct statement?
AEvery class containing abstract method must be declared abstract.
BAbstract class can directly be initiated with 'new' operator.
CAbstract class can be initiated.
DAbstract class does not contain any definition of implementation.
Show answerHide answer
Correct answer: (B) Abstract class can directly be initiated with 'new' operator.
Explanation
An abstract class cannot be directly instantiated with the new operator; since an abstract class does not contain a complete implementation, it is not possible to create an abstract object.
From UGC NET Computer Science PYQ, August 2016 (Paper II & III, Selected Questions)