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
How do I convert a string to an int in java?
What do you mean by composition in java?
whatis Home interface and Remoteinterface? with example?
Explain differences between checked and unchecked exceptions in java?
What is the difference between path and classpath variables?
Why array is used in java?
What are thread groups?
Can you inherit a constructor java?
How many java versions are there?
How can we run a java program without making any object?
Do I need java on my pc?
What is jit compiler ?
Which is bigger double or float?
Can an object subclass another object?
What is return type in java?