when to use abstract class and when to use interface?
Answer Posted / ravikiran
abstract class is used if you are willing to restrict the
creation of an instance.
interface is used if you are willing to write different
functionalities in different implementations.
| Is This Answer Correct ? | 34 Yes | 29 No |
Post New Answer View All Answers
What is a java applet? What is an interface?
What is the difference between the font and fontmetrics classes in java programming?
What is string builder?
What is parseint?
What is the use of bufferedreader?
Give an example of use of pointers in java class.
What does java stand for?
How do you use equal in java?
What is nan in java?
What are the two types of java programming?
What interface is extended by awt event listeners?
How can you avoid serialization in child class if the base class is implementing the serializable interface?
What is functional interface in java example?
Is final static java?
Why is java called the platform independent programming language?