where u use Abstraction and Interface in real time
Answer Posted / praveen
If a user want to interact with my application he need an
interface. With the interface the user can access the
specific methods of a class that implemented the interface.
For example user want to call a method. He already know the
specific class implemented that interface, then he can call
the method through reference object.
Abstract class is used whenever a user restricted to
inheritance but not taking instance of a class or if any
methods are there that should be implement by the user.
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
explain local datetime api in java8?
What are format specifiers in java?
What is the console in java?
What is a functional interface?
How to perform linear search in java?
What is a class instance variable?
What is the list interface in java programming?
I want to persist data of objects for later use. What is the best approach to do so?
What is the difference between variable declaration and variable initialization?
What's the difference between int and integer in java?
Write a java program that prints all the values given at command-line.
What is the difference between the font and fontmetrics classes in java programming?
Is an object null?
Difference between overriding and overloading in java?
What is method overloading in java ?