what are the oops concept in java explain with real time
examples

Answer Posted / murali krishna thanneeru

We have the following oops concepts like
1.Abtsrction
2.Encapsulation
3.Inheritance
4.Polymorphism

Abstraction:

hiding unnecessary data from the users and making the
application as user friendly then it is called as abstrcation

ex:Any mail account the user is simply filling the form and
he don't know ho it is developed.

Encapsulation:

Wrapping the data and code as a single unit is called as
encapsulation.

ex:Capsule is the best real time example for it.In it we
will have two types of drugs combined as single capsule.

Inheritance :
Acquiring the properties from one class(base class or parent
class)to another class(derived class or child class)is
called as inheritance.

Ex:Inventing laptop from desktop.

Polymorphism:

Single entity behaving in different forms is called as
polymorphism

ex:Mouse is for click the buttons and dragging the bars or
placing the pointer in a particular place.

Is This Answer Correct ?    69 Yes 14 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you pass functions in java?

562


Why string is called as immutable?

519


What are the 7 types of characters?

559


Can we have return statement in finally clause? What will happen?

506


Why string is a class?

539






What are the advantages of assembly language?

493


Explain wrapper classes in java?

524


What is private protected in java?

543


What is module with example?

507


Can a class extend more than one class?

601


Which api is provided by java for operations on set of objects?

898


What does localhost mean?

488


What is the significance of continue jump statement? Explain with an example.

735


What are data types in programming?

544


How many bytes are a float?

501