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 are wrapper classes in java?

1011


What are scriptlets?

1029


Can we extend private class in java?

930


What are the differences between heap and stack memory?

1020


What is the difference between jvm and jre? What is an interface?

1014


Can we define static methods inside interface?

926


How to make a non daemon thread as daemon?

1012


What is complexity and its types?

955


What do you mean by synchronized non access modifier?

942


What is the lifetime and scope of a variable?

956


What is method with example?

1016


What is the purpose of garbage collection in java?

1043


What are the advantages of autoboxing?

974


how would you implement a thread pool? : Java thread

845


What is the java virtual machine?

1015