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...

what are the oops concept in java explain with real time
examples

Answer Posted / pranav

OOps concepts are classified into 4 types. They are
1. Abstraction
2. Encapsulation
3. Inheritance
4. Polymorphism.

1. Abstraction:-
Hiding of non essential data and retrieving only the required data is known as Abstraction.

Eg:- Online Transactions.

2. Encapsulation:-
Wrapping up of memberdata and member functions bound together is known as encapsulation.

Eg:- Assembling of a computer system.

3. Inheritance:-
Acquiring the properties of one class by another class is known as encapsulation.

Eg:- Shoping Malls

4. Polymorphism:-
The process of acquiring many forms by one form is known as polymorphism.

Is This Answer Correct ?    2 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is thread safe singleton?

948


What is boolean query?

984


What is ctrl m character?

1059


Can a vector contain heterogenous objects?

1076


What is string buffer?

943


How many bytes is a char in java?

1021


What is complexity and its types?

1033


What is unicode with example?

1215


How to Sort Strings which are given in List and display in ascending order without using java api.

4437


how come we know the object is no more used in the class?

6468


What are dot operator queries?

1105


How does arraylist size increase in java?

1118


Why Java doesn’t support multiple inheritance?

1043


define polymorphism in java

1091


Can we create our own wrapper class in java?

970