0

We know that we cannot instantiate/ make object of abstract class and interfaces...but what is the reason behind this???

Actually why we can't make objects of abstract class...?

25th Jan 2017, 3:53 PM
ayush
2 Antworten
+ 1
To my knowledge, this is not a technical limitation so much as it is a logical limitation. The author has essentially made the class abstract to create a rule to prevent you from instantiating it. As the default implementation without a concrete class would not make sense. For example, you cannot create a vehicle, which is an abstract concept (Abstract Class), without specifying the type of vehicle, like a Honda Accord (Concrete Class).
26th Jan 2017, 1:52 PM
Erik Verduin
Erik Verduin - avatar
+ 1
yes....thanx.
26th Jan 2017, 2:39 PM
ayush