What is the difference between Abstract Class and Interface
Answer Posted / ravi
1.A programmer creates abstract class when there are some
common features shared by all the objects.
A programmer writes an interface when all the features
should be implemented differently for different objects.
2.When an abstract class is written the programmer should
provide sub classes to it.
A programmer writes an interface when he wants to leave
implemntation classes to third party vendors.
Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
What is the vector class in java programming?
What is OOP's Terms with explanation?
When we should use serialization?
is it possible to instantiate the math class?
What is multiple inheritance? Is it supported by java?
Why static functions are used?
What are the loops in java?
Which class cannot be a subclass in java?
Explain about varargs in java?
What is arrays aslist in java?
How will you calculate the depth of a binary tree if the tree contains 15 nodes?
What is implicit object in java?
What is the use of volatile in java?
What are the special characters?
Explain the importance of import keyword in java?