Why abstract classes necessary?
- by bala3569
1.What is the point of creating a class that can't be instantiated?
Most commonly to serve as a base-class or interface (some languages have a separate interface construct, some don't) - it doesn't know the implementation (that is to be provided by the subclasses / implementing classes)
2.Why would anybody want such a class?
For abstraction and re-use
3.What is the situation in which abstract classes become NECESSARY?can anyone brief it with an example?