java - Concrete method in abstract class -


i understand abstract class may contain abstract , concrete methods (i.e body implementation). question are: can subclasses inherit/override concrete methods abstract superclass. , secondly have inherit concrete methods same way inherit abstract methods?

can subclasses inherit/override concrete methods abstract superclass

if not final, yes, can overriden.

and secondly have inherit concrete methods same way inherit abstract methods?

no, need inherit abstract ones, otherwise abstract method wouldn't make sense.


Comments

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -