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...?
2 ответов
+ 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).
+ 1
yes....thanx.