Answer Posted / saranya
it is the important concept of OOP, from the greek concept
'poly' means many 'morphism' form ,from this the definition
is "the ability to take more than one form"
EXAMPLE:
method overloading(static polymorphism...early binding)
method overriding(dynamic polymorphism...late binding)
| Is This Answer Correct ? | 76 Yes | 25 No |
Post New Answer View All Answers
How do you achieve runtime polymorphism?
What is stream in oop?
How can you overcome the diamond problem in inheritance?
#include
Can bst contain duplicates?
Is enum a class?
i=20;k=0;
for(j=1;k-i;k+=j<10?4:3)
{
cout< 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. what is difference between class template and template class? How does polymorphism work? just right the logic of it
1--> If few people are electing then every time ur candidate
should win
2--> arrange books in box, if box carry weight == books
weight then take another box..... find the no of box
required. What is an example of genetic polymorphism? What is polymorphism what is it for and how is it used? Whats is abstraction in oops? What are the 3 principles of oop?