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...


Tell me real world example of polymorphism and encapsulation .

Answers were Sorted based on User's Feedback



Tell me real world example of polymorphism and encapsulation ...

Answer / sp

Polymorphism can be considered as a Married man. Who acts
differently in different situation , he acts as a son to
his father and the same person acts as father to his
son .That is he plays , different roles in different
environment.

Is This Answer Correct ?    120 Yes 10 No

Tell me real world example of polymorphism and encapsulation ...

Answer / pankaj

Rael world example fo polymorphism can be start machnism of
bike, inwhich u wil hav same method start() but it may be
either by kick start or button start.
N example for encapsulation can be a stack or queue doesn't
matter how it is implented internally with linked list or array

Is This Answer Correct ?    64 Yes 27 No

Tell me real world example of polymorphism and encapsulation ...

Answer / rexreno

polymorphism can be describe as a key in our mobile phone,
if we press key one time it write say "m" and if 2 times it
write "n".
same key implementing different tasks.

Is This Answer Correct ?    46 Yes 11 No

Tell me real world example of polymorphism and encapsulation ...

Answer / dd

Real example of polymorohism--
Ur mobile phone..
one name but many forms..
as phone.
as camera
as mp3 player
as radio..

Is This Answer Correct ?    42 Yes 9 No

Tell me real world example of polymorphism and encapsulation ...

Answer / shashank

polymorphism real life example:
a software engineer performs many task such as sometimes he performs coding, sometimes he performs testing, sometimes he performs analyzing. so software eng. is one but he is performing different task depending upon time.

Is This Answer Correct ?    16 Yes 6 No

Tell me real world example of polymorphism and encapsulation ...

Answer / sharuq

polymorphism..
take a boy. at home he is a son and at school he is student
encapsulation..
take a car we can see only body of the car but not engine

Is This Answer Correct ?    1 Yes 0 No

Tell me real world example of polymorphism and encapsulation ...

Answer / nagaraj

polymorphisms:-
polymorphisms is nothing but ability to take more than one forms(One Interface,Multiple Methods or One Name,Many Forms).

Encapsulation:-
-is nothing but wrapping the data and functions into single entity.

Inheritance:-
The Process of deriving new class from existing class.This is called Inheritance.
New Class-Child Class
Existing Class-Parent Class


Polymorphism:

say a door..
a door to a temple, a door to a house, a door to a kitty house,
all are doors, but all look different

Encapsultion:

cars and owners...
all the functions of cars are encapsulated with the owners..
No one else can access it...

Is This Answer Correct ?    1 Yes 1 No

Tell me real world example of polymorphism and encapsulation ...

Answer / srikanth reddy

Polymorphysam it means :One thing Menyforms ex: money y bcoz money is one thing it can useful for us food, travel, shoping, rent ex...

Is This Answer Correct ?    0 Yes 1 No

Tell me real world example of polymorphism and encapsulation ...

Answer / m.arunachalam

Examples of Polymorphism : Consider a Crocodile... It's live
in water and land.......

Is This Answer Correct ?    9 Yes 16 No

Tell me real world example of polymorphism and encapsulation ...

Answer / abhishek

real example is our eyes work seen the object in light, and
work not seen object in dark .

Is This Answer Correct ?    4 Yes 18 No

Post New Answer

More Data Structures Interview Questions

What is complexity algorithm?

0 Answers  


What is circular linked list?

0 Answers  


Which collection type is used to maintain uniqueness of data structure?

0 Answers  


Explain different methods in which you can traverse a tree?

0 Answers   NIIT,


Which is faster quick sort or merge sort?

0 Answers  


What is the difference between collection and collections?

0 Answers  


How to use appendNode() in linkedlist()?

0 Answers  


Suppose in an integer array, there is 1 to 100 number, out of one is duplicate, how to find?

0 Answers  


Define structure property in a heap?

0 Answers  


Is array a dynamic data structure?

1 Answers  


Why using cookie to store session info is a better idea than just using session info in the request?

0 Answers  


Explain about the different lists available in the collection?

0 Answers  


Categories