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

Explain about main thread in java?

859


What is a boolean used for?

825


What does percent mean in java?

787


What is an eror in java?

791


What is meant by object oriented programming – oop?

749


Is main a keyword in java?

733


Can list have duplicates in java?

702


What are the advantages of passing this into a method instead of the current class object itself?

1398


What is a list in java?

718


What do you meant by active and passive objects?

805


How does map works in java?

729


Is set sorted in java?

693


What are the four corner stones of oop?

775


What is covariant return type?

844


If we don’t want some of the fields not to serialize how to do that?

776