Answer Posted / manoshp
Abstract class:- When there are common behaviors for a set of classes and that behavior do not have any existence by its own, these behaviors are defined in an abstract super class. All sub classes will inherit that common behavior by extending the super class.
Interface:- When there are multiple implementations for a set of functionalities, all these behaviors are defined in an interface as entry points without any implementation details to these behaviors. The client class can use this interface without considering the implementation details.
Is This Answer Correct ? | 6 Yes | 1 No |
Post New Answer View All Answers
Explain about version control?
What do you mean by mnemonics?
What are desktop procedures?
Why webdriver is an interface?
What is the purpose of main function in java?
Differences between external iteration and internal iteration?
Write a program to print fibonacci series
What are singleton services?
Explain about main() method in java ?
Why is an interface be able to extend more than one interface but a class can’t extend more than one class?
How to retrieve data from database in java using arraylist?
What does java edition mean?
Explain the different forms of polymorphism?
What are abstract methods in java?
What is difference between c++ and java ?