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 |
How would overload a function based on return type?
Where local and global variables are stored?
Why packages are used?
what is the meaning of java.lang and java.util
What is the relationship difference the canvas class and the graphics class?
What is stack class in java?
what is meant by package in java?
What is a static class in java?
Explain scope or life time of local variables in java?
how many access specifiers are available in java
Why are global variables used?
Name two subclasses of the TextComponent class?