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 / ajay kumar agarwal

OOPS Concepts are mainly 4
1.Abstraction
2.Encapsulation
3.Inheritance
4.Polymorphisam
Abstraction:-Hidding non-essential features and showing the
essential features

(or)
Hidding unnecessary data from the users details,is called
abstraction.
Real Time example:Any electronic Device

in that we don't see the
button circuits.i.e buttons circutes and wirings all are
hidden.so i think its good example.

Encapsulation:

Writing Operations and methods stored in a single
class.This is Called Encapsulation

Real Time Example:A state Or Country
i.e different culture districts make a state.and different
behaviours of states form a country..
I think it is good example

Inheritance:
The New Class is Existing from Old Class,i.e SubClass is
Existing from Super Class.

Real Time Example:

Father and Son Relationship is the Ever green example

Polymorphisam:

Sinle Form behaving diffreantly in diffreant
Situations.
Example:-
Camera Mobile
when we talk used as communicator,
When we go for a tour used as a camera.
When we want to enjoy used as a player or FM.

I think these all are real time experianceany.is there any
more answers send me my mail Madhu.jjj@rediffmail.com also.

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why we use protected in java?

932


What happens when I use / and % with a negative numerator?

995


How do I get the | symbol on my keyboard?

1022


What data type is string java?

909


What do you mean by object?

914


How do you avoid global variables?

1016


How does list work in java?

864


how would you implement a thread pool? : Java thread

845


From the two, which would be easier to write: synchronization code for ten threads or two threads?

999


What is difference between classpath and path variables in java?

1133


Why can't you declare a class as protected?

1050


Why hashcode is used in java?

918


what is interface in java? Explain

905


Can a class have multiple constructors?

961


What is the difference between compiler and jvm?

979