Originally posted by abhinava srivastava:
can an abstract class extend concrete class?
Basically What does an abstract class mean?
It is any class that is having some abstract bhavior. So it may extend some concrete class therefor it may have concrete behavior for whatever it has extended from the concrete class. But it may well add *extra* abstract behavior by adding its own abstract methods.
So it will be having concrete methods from extended class + its own abstract methods. Therefore it has to be abstract.
/* concrete class */
class Draw{
void drawShape(){
//implementation provided..
}
}
/* Abstract Class */
abstract class Painting extends Draw{
void fillColor(); //no implementation provided..
}
Thanks!
Rohit Nath