when,where and how to use abstract class and interface
Answer Posted / vinaykumar
If you want to provide your own services for methods we
use interfaces.If you want to provide your own services or
to use the services of the methods in your class then wego
for abstract classes.abstract class is partially implemented
and partially unimplemented class where as interface is
completely unimplemented.both of the objects can not be
created.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is meant by attribute?
How do you convert an int to a double in java?
Write a java program to print fibonacci series?
Differences between external iteration and internal iteration?
What is variable explain with example?
What is the transient keyword?
Write code to implement bubble sort in java?
Why there is no call by reference in java?
What is meant by data hiding/encapsulation?
What are three types of loops in java?
What happens if main method is not static?
What is the indent key?
Can we use a default constructor of a class even if an explicit constructor is defined?
Is java an ide?
What is a class variable?