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 |
Hi am an mca graduate . i have done bsc maths in my degree . every company asks me why you make shift from maths group to computere field . What i need to answer?
Can you make an instance of an abstract class?
What is a parameter example?
What is the purpose of the File class?
What are the Abstract Classes provided by Java?
Give me some null interfaces in java?
What is a class component?
When try and catch block is used ?
Write a factorial program using recursion in java?
What is balanced tree in java?
whats is the use of final,in which situation final can be used in the application?
What is the difference between throw and throws? What is the similarity between try and throw?