when to for abstract class and when to go for interface
Answer Posted / chandra d
If your class design has multiple implementations then we
can go for Interface.
if your class design is having some specific features and
some other features may change .. then we can go for
Abstract class
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What does substring mean?
Enlist few advantages of inheritance?
Can java list be null?
Can static method access instance variables ?
Can a class be declared as static?
Is java programming easy?
What do you mean by light weight and heavy weight components?
Is java based on c?
What are the approaches that you will follow for making a program very efficient?
What are the legal parameters?
What is a map in java?
When do I need to use reflection feature in java?
What is the buffer limit?
When is the finally clause of a try-catch-finally statement executed?
How can we pass argument to a function by reference instead of pass by value?