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 / m arunachalam

OOPS COncepts Are:
Mainly these are the concepts are very important in oops:
Abstraction
Encapsulation
Inheritance
Polymorphism.

Birds Vs Abstractions

Birds: we invented flight based on the mechanism of Birds.
So flight is derived form the base of birds.

Abstraction: Abstraction is a way to remove the association
of the behavior of an object with the actual details behind
the scenes which implement that object's behavior. This
'abstraction' is usually accomplished through the use of
base classes with virtual functions; each derived function
provides the details that implement the behavior behind that
abstraction.

Pen Vs Encapsulation

Pen: Ink is the important component in pen but it is hiding
by some other material

Encapsulation: is a process of binding or wrapping the data
and the codes that operates on the data into a single
entity. This keeps the data safe from outside interface and
misuse. One way to think about encapsulation is as a
protective wrapper that prevents code and data from being
arbitrarily accessed by other code defined outside the wrapper.

Crocodile Vs Polymorphism

Crocodile: live indifferently on land or in the water. In
water it’s Moment very fast compare to land. An animal lives
in different character in different place.

Polymorphism: a single function or single operator has
different character in different place.

Inheritance Vs Human Relationship

Human Relationship: GrandFather-Father-Son

Inheritance:A derived from existing one to new one is known
as Inheritance.

Is This Answer Correct ?    12 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is wrapper class example?

991


What is the difference between the paint() and repaint() methods in java programming?

1180


What does jre stand for?

1055


What is jpa specification?

962


How do you identify if jvm is 32-bit or 64-bit from java program?

960


what is the use of bean managed and container managed with example?

1969


What are the high-level thread states in java programming?

1051


What is the largest number a double can hold?

1039


what is difference betweem home interface and remote interface?

2624


Can anonymous class have constructor?

1016


Why is java called the platform independent programming language?

1003


What is meant by data hiding/encapsulation?

1101


What is internal variable?

1004


Difference between static synchronization vs. Instance synchronization?

1104


What is a flag variable?

966