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 is polymorphism? Explain with an example.

Answer Posted / zahid hussain

polymorphism mean created a object which have many forms
method overloading and method overriding are these concept of polymorphism.

eg. a room have a electricity button which perform many functionality like on tube light, on bulb, on fan etc. one object button but perform many function..

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

write a C++ program for booking using constructor and destructor.

2536


What are the components of marker interface?

1050


What is a superclass in oop?

1169


What does enum stand for?

1114


write a code for this. serial_number contained in the header of the file will be read , if this serial number is less than a previous serial number within a successfully processed file, or is the same as another serial number within a successfully processed file, or if the field contains anything other than 7 digits, then the file must error with the reason ‘Invalid SERIAL_NUMBER’.

2246


Can we create object of interface?

1128


write string class as your own class in java without using any built-in function

2494


What does <> mean pseudocode?

1180


Why do we use polymorphism?

1079


write knight tour problem which is present in datastructure

2649


What are the 4 main oop principles?

1219


What is an advantage of polymorphism?

1091


What is encapsulation in oops?

1005


What is the importance of oop?

1093


What is Difference Between Inheritance and creating object and getting data? means Class A extends B{ B.getMethod();} (OR) Class A{ b obj=new B(); obj.getMethod(); }

2593