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

why not override thread to make a runnable? : Java thread

1012


Explain importance of throws keyword in java?

987


What is java Applet?

1113


Can we override constructor?

1036


How to make a write-only class in java?

1071


What is string length in java?

963


What is the importance of finally block in exception handling?

1035


What is a short in java?

1055


How to compare two strings in java program?

1060


How can you traverse a linked list in java?

1138


State the significance of public, private, protected class?

1113


What is the use of toarray () in java?

1076


What are the core java topics?

1066


Can you use abstract and final both with a method?

1110


Are generics important java?

989