Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

What is api data?

945


What is the difference between JDK and JVM?

1180


Why java applets are more useful for intranets as compared to internet?

1013


What are "methods" and "fields"?

970


how does multithreading take place on a computer with a single cpu? : Java thread

1082


What is the purpose of stub and skeleton?

955


What is main method?

995


What is appletviewer?

984


Can we serialize static variables in java?

1036


Difference between stack and queue?

1014


How do you clear an arraylist in java?

935


What are the two ways in which thread can be created?

998


How do you add an element to a set in java?

975


Which is illegal identifier in java?

1018


What are the ways in which a thread can enter the waiting state?

882