New course! Every coder should learn Generative AI!
Try a free lesson+ 10
You cannot instantiate an object of abstract class but you can call it's constructor using the class that extends it.
+ 5
No, you can not create object for abstract class either directly or indirectly.
+ 2
Yes
+ 2
We can't create an object in abstract classes. We create an object in child class of an abstract class instead.
+ 2
Fyi i challenge 10 times a day still my xp is increasing very slowly
+ 1
No
+ 1
I m also from nashik
+ 1
How you manage to increase xp faster😓
+ 1
no you cannot create object for abstract classes or for interface but for abstract classes we can call constructor of abstract class through the child class that is extending that abstract class.
since abstract classes are no way related to object creation because of partial implementation.
+ 1
Rajeshwari Dadaji Ahire
Prasanna Kale
You guys can follow each other and can have your discussions in person. This question has been answered so do not use this thread for other talks apart from what has been asked.