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 api data?
What is the difference between JDK and JVM?
Why java applets are more useful for intranets as compared to internet?
What are "methods" and "fields"?
how does multithreading take place on a computer with a single cpu? : Java thread
What is the purpose of stub and skeleton?
What is main method?
What is appletviewer?
Can we serialize static variables in java?
Difference between stack and queue?
How do you clear an arraylist in java?
What are the two ways in which thread can be created?
How do you add an element to a set in java?
Which is illegal identifier in java?
What are the ways in which a thread can enter the waiting state?