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 |
how to prepare for IT Officers Interview in Banks
0 Answers TATA, Tata Steel Limited,
What is string [] java?
Can we use string in the switch case?
What are constructors in java?
which swing component is similar to rich text box in .net/vb
Why hashset is used in java?
what is use of session tracking ?with example?
What is the disadvantage of synchronization?
What are green threads in java?
Explain with example the concept of constant variable in java.
What happens when heap memory is full?
How do I print a “?