+ 1

What does the following question mean? & what is its answer?

how many instances of an abstract class can be created?

14th Jun 2019, 12:41 PM
‎Mustafa Haider
‎Mustafa Haider - avatar
1 Resposta
+ 2
To instantiate a class means "create a new object described by the class": abstract class SomeClass {}; SomeClass obj = new SomeClass(); An abstract class cannot be instantiated because it does not have a complete implementation. It is just useful, like interfaces, for inheritance. Difference between abstract classes and interfaces: http://net-informations.com/faq/net/abstract.html
14th Jun 2019, 12:59 PM
Bilbo Baggins
Bilbo Baggins - avatar