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
How many bytes is a unicode character?
What is unicode full form?
What is the difference between state-based unit testing and interaction-based unit testing?
Why enumeration is faster than iterator?
How to restrict a member of a class from inheriting by its sub classes?
which pattern is default in scanner package?
What is generic type?
Explain OOPs concept.
What are the 4 types of research methods?
What is files manifesting?
If I don't provide any arguments on the command line, then what will the value stored in the string array passed into the main() method, empty or null?
What does those terms actually mean included in the j.d.k i.6?
What is the maximum size of hashmap in java?
What is final keyword in java?
What is method overloading and method overriding?