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 anagram in java?
What is executor memory?
Why call by value prevents parameter value change?
What is the public field modifier?
What is the difference between yielding and sleeping?
Difference between the paint() and repaint() methods?
What is the difference amongst jvm spec, jvm implementation, jvm runtime ?
What is __ init __ functions?
Can a class have a static inner class?
Is arraylist an object in java?
What is the differences between c++ and java? Explain
program to find 25 square = 625 here the 625 of last two digits is equal to 25, i don't know excatly what this type of number is called