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


Please Help Members By Posting Answers For Below Questions

Which class should you use to obtain design information about an object in java programming?

744


What are the differences between getting and load method?

627


What is the difference between equals() and?

702


Can we override static methods in java?

661


Give example to differentiate between call by value and call by reference.

685






Can you pass functions in java?

676


What is immutable in java?

653


why Java does not support multiple inheritances?

791


What is the purpose of object oriented programming?

618


What is e in java?

628


what is the use of pojo (plain old java objects)? how it is interact with crystal reports? pls urgent

1820


How does queue work in java?

616


Is an empty arraylist null?

697


What is ternary operator in java?

689


Explain about collection interface in java?

640