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 are the different access modifiers available in java?
what r advatages of websphere? & how to deploy?
What are methods and how are they defined?
Why we used break and continue statement in java?
Find the value of a specified element of the array arr[i] where 0 <= i <= n-1
What is a line separator in java?
If a variable is declared as private, where may the variable be accessed?
Assume a thread has lock on it, calling sleep() method on that thread will release the lock?
What are the concepts of 'OOPS'?
Can an interface implement another interface?
Difference between Linked list and Queue?
What is console based application in java?
Can an unreferenced object be referenced again?
What is command line argument in java?
What is r in java?