What is polymorphism ? Explain with examples
Answer Posted / ashok kumar
polymorphism means many forms,greekword-poly-many fuction
overloding,fuction overloding,operator overloding.
ex->'+'
this opertor can be overloaded to add strings
(concatenation)or sets(union)and so on. functions also can
be overloaded as show in the next sectin.the
terms 'Overloading'and 'polymorphism' are used
interchangeablely.
| Is This Answer Correct ? | 10 Yes | 3 No |
Post New Answer View All Answers
Is oop better than procedural?
What are the data types in oop?
What makes a language oop?
#include
What is object and class in oops?
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 abstraction in oops with example?
Why do while loop is used?
What are properties in oop?
What is difference between polymorphism and inheritance?
given a set based questions and 5 questions based on it next data sufficiciency questions 2 and 2/3 english sentence completion with options very easy and 2 synononmys paragraph with 10 questions 10 minutes replace =,-,*,% with -,%,+,* type questions 5 3 questions lik following itssickhere itssickthere itssickhere istsickhere which is nt alike the others very easy
Is react oop?
How can you overcome the diamond problem in inheritance?
Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer
What is inheritance in oop?