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
Are static members inherited to sub classes?
What is the use of inner class?
Why are parameters used in functions?
What is data type in java?
If a variable is declared as private, where may the variable be accessed?
Suppose if we have variable ' I ' in run method, if I can create one or more thread each thread will occupy a separate copy or same variable will be shared?
Give a practical example of singleton class usage?
What is the difference between a vector & an array list?
What is the original name of java?
What is unsigned char?
What are voids?
How do you escape sequences in java?
What is parameters example?
What is the use of a conditional inclusion statement in Java ?
Is an array a vector?