when to use abstract class and when to use interface?
Answer Posted / devarathnam c,kotagudibanda(po
Hi...
When u want to inherit the properties of base class only
(not other resources) go for Abstract class.
When u want to inherit the properties of base class and
other resources go for Interfaces .
| Is This Answer Correct ? | 42 Yes | 34 No |
Post New Answer View All Answers
What are the advantages of encapsulation in java?
What do you mean by an object in java?
What is a boolean output?
What is main in java?
Explain the usage of this with constructors?
How to reverse a string in java?
What is passing by reference in java?
What are the rules for variable declaration?
What is command line argument in java?
What is method reference?
Is singleton class thread safe?
What are the different types of collections in java?
When should I use stringbuffer?
What is method overriding in java ?
What is a copy constructor in java?