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

explain local datetime api in java8?

1062


What are format specifiers in java?

1114


What is the console in java?

1213


What is a functional interface?

1096


How to perform linear search in java?

996


What is a class instance variable?

1174


What is the list interface in java programming?

1176


I want to persist data of objects for later use. What is the best approach to do so?

1105


What is the difference between variable declaration and variable initialization?

1102


What's the difference between int and integer in java?

1234


Write a java program that prints all the values given at command-line.

1059


What is the difference between the font and fontmetrics classes in java programming?

1264


Is an object null?

1034


Difference between overriding and overloading in java?

1118


What is method overloading in java ?

1163