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
What are the kinds of polymorphism?
What is purpose of keyword void?
Is it possible to compare various strings with the help of == operator?
Can we declare main () method as non static?
What are multiple inheritances?
What do you mean by aggregation?
What is sortedmap interface?
What is a string what operation can be performed out with the help of a string?
Explain about automatic type conversion in java?
What is the technique adopted to create an immutable class?
What is the difference between Java1.4 and Java1.5
What does += mean in java?
What is t in parametric equations?
What are java methods?
Does collectionutils isempty check for null?