when to for abstract class and when to go for interface
Answer Posted / 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 |
Post New Answer View All Answers
What is a java string?
What is used of static keyword in java?
What is final variable?
What are the Class Libraries ?
How many types of methods are there in java?
Give the difference between the println method and sqrt method?
What is the difference between a choice and a list?
How is hashcode calculated in java?
What is <> used for in java?
What is the difference between yielding and sleeping in java programming?
What's the access scope of protected access specifier?
What does n mean in java?
What are the three types of design patterns?
How do you change an int to a string?
What is an argument java?