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
How to sort an array from smallest to largest java?
How can we achieve thread safety in java?
What does java ide mean?
How do you create an array in java?
Why we go for collections in java?
Is static a keyword in java?
What is the use of set in java?
What is tree in java?
What is difference between protected and private?
What is instance example?
What is primitive array?
What is an immutable class? How to create an immutable class?
What’s a deadlock?
What's the purpose of using break in each case of switch statement?
If goto and const is reserve words than why it is not work in java?