What is polymorphism in oops?

Answer Posted / padmas

If the class is designed in such a way that the methods with same and with different parameters provided then the depending the input values each method gets executed as per the input provided and gives the appropriate output as given in each different method though has same name of the method in that class. Poly means many with similar, ..Having multiple input will get multiple methods gets multiple output, as given accordingly.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which type does string inherit from?

838


What exactly is polymorphism?

862


What is oops with example?

769


What are constructors in oop?

801


They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?

1621


Who invented oop?

843


What is byval and byref? What are differences between them?

1955


What is object and example?

876


What is the difference between a constructor and a destructor?

853


what type of questions

1896


What is abstraction oop?

825


What are the benefits of interface?

803


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.

926


Advantage and disadvantage of routing in telecom sector

1022


What is the use of oops?

796