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 / madhu

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 ?    9 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is method overloading not possible by changing the return type in java?

943


What is class forname?

947


What are the types of methodology?

1028


What is the purpose of extern variable?

963


Difference between linkedlist and arraylist.

1018


What is the difference between the reader/writer class hierarchy and the inputstream/outputstream class hierarchy in java programming?

1048


How does a for loop work java?

986


Can a class have an interface?

918


Is namespace same as package in java?

936


How does list work in java?

864


What do you meant by active and passive objects?

1017


Which sorting is used in arrays sort in java?

1027


Can we write any code after throw statement?

1006


List some features of the abstract class.

996


Why do we need variables?

928