When should I use abstract classes and when should I use
interfaces?
Answers were Sorted based on User's Feedback
Answer / ved.b.tripathi
Interface : when you about to maintain the standard through
out the application then,blindly go with the interface.
Abstract : when you customize the behavior but still want to
maintain some standard then use abstract,because in abstract
you can have non abstract method that will be use by every
class that extend this abstract method and that class also
have to give the body of abstract methods(standard).
| Is This Answer Correct ? | 15 Yes | 2 No |
What is the difference between Access Modifier and Access specifier?
Which collection allows duplicate values in java?
What is the requirement of thread in java?
What is the difference between the font and fontmetrics classes in java programming?
I don’t want my class to be inherited by any other class. What should I do?
How do you use spaces in java?
What do you mean by Hash Map and Hash Table?
When does an object becomes eligible for garbage collection in java?
Why vector class is used?
Can we override private methods?
What is predicate in java?
watz the difference between abstract class and interface? Which one u ill choose as a designer?