can we create object of abstract class? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

can we create object of abstract class?

9th Jul 2016, 6:50 PM
Urvashi Tiwari
Urvashi Tiwari - avatar
3 Answers
0
No, they can't be instantiated. They can only be used as an extension class
9th Jul 2016, 10:54 PM
James
James - avatar
0
You can't create object of Abstract class, though you can create reference variable of Abstract class in order to use Polymorphism.
10th Jul 2016, 3:08 AM
Mohit Gupta
Mohit Gupta - avatar
0
No only the class which is implementing the abstract methods can be instantiated..
10th Jul 2016, 2:08 PM
Vasudev PS
Vasudev PS - avatar