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 serialization and deserialization in java?
Is map sorted in java?
What is the destroy method?
What is the difference between error and an exception?
Explain the use of sublass in a java program?
Write a program to search a number in the given list of numbers.
What is arrays sort in java?
Explain OOPs concept.
Which is faster call by value or call by reference?
How do you trim a space in java?
What are the three parts of a lambda expression?
What is the difference between replace and replace all?
Can a class extend more than one class?
What are register variables what are the advantages?
Explain about OOPS concepts and fundamentals.