A abstract class extending an abstract class.Super class
has both abstract and non-abstract methods.How can we
implement abstract and non-abstract mehtods? Explain with
snippet

Answer Posted / puneet khanna

If you have 2 abstract classes say Abstract Class A and
Abstract Class b where B extends A;

B may not implement the abstract methods from A but the
class which will inherit B will have to give the
implementation of the abstract methods from class A and B both.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why parameters should be passed by reference?

713


Is it possible to override the main method?

732


What are the rules for naming an array?

735


Can constructor be inherited?

798


What is an example of procedure?

731


why we use merge option in hybernate pls give a ex snippet

1699


What is null data type?

722


How are the elements of a gridbaglayout organized?

795


Is simpledateformat safe to use in the multithreaded program?

753


Can vector have duplicates in java?

712


How many types of memory areas are allocated by JVM in java?

808


Explain the use of sublass in a java program?

776


What is double data type?

734


Explain the protected field modifier?

835


Why does abstract class have constructor?

765