when to for abstract class and when to go for interface
Answers were Sorted based on User's Feedback
Answer / sumit kumar
if your class design have some common and some different
behavior then go for - abstract class
if your class design have only different behavior then go
for interface.
| Is This Answer Correct ? | 12 Yes | 2 No |
What is an abstract class and abstract method?
What is printwriter in java?
In what circumstances, compiler will supply a default constructor for a class?
What are the files generated after using IDL to java compiler?
What is meant by wrapper classes?
What are the two types of java?
Why string is popular hashmap key in java?
there are some duplicate values in ArrayList, how U'll get that array with out duplicate?
What is java util list?
Can final class have constructor?
In Java, what types of classes perform inheritance?
What does %4d mean in java?