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
Which type does string inherit from?
What exactly is polymorphism?
What is oops with example?
What are constructors in oop?
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?
Who invented oop?
What is byval and byref? What are differences between them?
What is object and example?
What is the difference between a constructor and a destructor?
what type of questions
What is abstraction oop?
What are the benefits of interface?
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.
Advantage and disadvantage of routing in telecom sector
What is the use of oops?