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 abstract class? Explain
i would like to attend for an interview of datalab technologies company i want to know the pattern of imnterview.
Explain the difference between abstract classes and interfaces in java?
When we r go to abstract class and when we go to Interface? i have confusion this question while in interview plz clarify
C and C++ has constructors and distructors, why does Java does not have distructors?
Explain about vector, dictionary,hash table, property classes?
What is keyword in oop?
What is an immutable object?
What are synchronized methods ?
Can we have a try block without catch block?
What is predicate in java?
What is the argument type of main() method?