when to for abstract class and when to go for interface
Answer Posted / chandra d
If your class design has multiple implementations then we
can go for Interface.
if your class design is having some specific features and
some other features may change .. then we can go for
Abstract class
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
How are this() and super() used with constructors in java programming?
What is a concrete classes? Is Java object class is concrete class?
What is method overloading with type promotion?
What is the difference between preemptive scheduling and time slicing?
What is use of functional interface in java 8? Explain
What is the difference between delete and delete[]
Can we overload run() method in java?
Can size_t be negative?
Write a program to solve producer consumer problem in java?
What is meant by class loader? How many types are there?
What is args length in java?
What is callablestatement? How you can call stored procedure to pass in parameter?
Define immutable object?
List primitive java types?
can used Protected Class outside Function.?