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
Is array a class?
What data structures are used to perform recursion?
Can we have any other return type than void for main method?
What is sortedmap in java?
Can you call a method on a null object?
Write a function for palindrome and factorial and explain?
How do you execute a thread in java?
what is an objects lock and which objects have locks? : Java thread
What is meant by flickering?
What is class level lock ?
how would you implement a thread pool? : Java thread
how to write a program for sending mails between client and server
What is final keyword?
What do you mean by light weight and heavy weight components?
What is a finally block?