Instance of which type of class can’t be created?

Phạm Quyết

New member
Instance of which type of class can’t be created?
A. Anonymous class
B. Nested class
C. Parent class
D. Abstract class
 
Answer: d
Explanation: Instance of abstract class can’t be created as it will not have any constructor of its own, hence while creating an instance of class, it can’t initialize the object members. Actually the class inheriting the abstract class can have its instance because it will have implementation of all members.
 

Tìm kiếm

Back
Top