Any class with an abstract method (a method has no implementation similar to pure virtual function in C++) must be declared abstract, yet you can declare a class abstract that has no abstract method. If subclass overrides all abstract methods of the super class, than it becomes a concrete (a class whose object can be instantiate) class otherwise we have to declare it as abstract or we can not compile it. The most important aspect of abstract class is that reference of an abstract class can point to the object of concrete classes.
0 Comments
Please add nice comments or answer ....