What is polymorphism? Explain with an example.

Answer Posted / dharmendra rai

The concept of polymorphism can be explained as "one interface, multiple methods".

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a c++ program to display pass and fail for three student using static member function

2818


Why is oop useful?

602


What does enum stand for?

617


What is the point of oop?

656


What is super in oop?

599






Question: Implement a base class Appointment and derived classes Onetime, Daily, Weekly, and Monthly. An appointment has a description (for example, “see the dentist”) and a date and time. Write a virtual function occurs_on(int year, int month, int day) that checks whether the appointment occurs on that date. For example, for a monthly appointment, you must check whether the day of the month matches. Then fill a vector of Appointment* with a mixture of appointments. Have the user enter a date and print out all appointments that happen on that date.

632


What does no cap mean?

592


What are the 3 principles of oop?

619


write a program to enter a string like"sunil is a good boy and seeking for a job" not more than 10 characters including space in one line,rest characters should b in other line.if the next line starts from in between the previous word,then print whole word to next line.

1795


What causes polymorphism?

577


Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)

1641


Why is it so that we can have virtual constructors but we cannot have virtual destructors?

3846


Is html an oop?

584


Is data hiding and abstraction same?

569


What is static modifier?

634