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 is a condition in programming?
What does java se mean?
What is int argc char * argv?
What is sortedmap in java?
What is difference between null and void?
How thread scheduler schedule the task?
Whats the difference between notify() and notifyall()?
What is %02d?
What is the use of http-tunneling in rmi?
Why are the methods of the math class static?
we have syntax like for(int var : arrayName) this syntax is to find whether a number is in the array or not.but i want to know how to find that number's location.
What is meant by binding in rmi?
What is difference between iterator and enumeration in java?
why java uses class level type casting ?
How is garbage collection controlled?