What are concepts of OOPS and how are they implemented in
Java?

Answer Posted / tarangini

oops concepts are Encapsulation, inheritance, abstractio
and polymorphism.

Encapsulation: Buildingup of the data and methods as a
single unit is called encapsulation. It isolates the
members of one class from the members of another class, so
we can declare same variable in both the classes.

best example for encapsulation is: A Class


Inheritance: Producing the new classes from already
existing class is called inheritance. The newly produced
class contains the features of old class and it has its own
features.

the use of inheritance is reusability.

Abstraction: Hiding unnecessary data from the user is
called Abstraction.

Polymorphism: Poly means many. Morphism means forms.
If same object perfrom different tasks is called
polymorphism.

Is This Answer Correct ?    15 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define "Access specifiers" in java.

755


Which is the class in java?

613


What is classes in java?

596


Difference between a class and an object?

665


What is the purpose of encapsulation?

629






Who is the owner of java?

632


How does thread synchronization occurs inside a monitor? What levels of synchronization can you apply?

631


I don’t want my class to be inherited by any other class. What should I do?

676


What is the difference between jfc & wfc?

692


How do you insert a line break?

583


What is a data structure java?

599


Explain methods specific to list interface?

643


Explain about public and private access specifiers?

637


What are inbuilt functions in java?

665


How to convert string to char and vice versa?

602