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
What is thread safe singleton?
What is boolean query?
What is ctrl m character?
Can a vector contain heterogenous objects?
What is string buffer?
How many bytes is a char in java?
What is complexity and its types?
What is unicode with example?
How to Sort Strings which are given in List and display in ascending order without using java api.
how come we know the object is no more used in the class?
What are dot operator queries?
How does arraylist size increase in java?
Why Java doesn’t support multiple inheritance?
define polymorphism in java
Can we create our own wrapper class in java?