Answer Posted / khadeer.k
polymorphism is one of the pillars of oops.
polymorphism in latin word which describes 'poly' means many
'morphs' means forms.
polymorphism has concept like function overloading...
| Is This Answer Correct ? | 287 Yes | 91 No |
Post New Answer View All Answers
What is overriding vs overloading?
What is oops with example?
What is oops and why we use oops?
What are the 3 principles of oop?
What are the 3 pillars of oop?
How to call a non virtual function in the derived class by using base class pointer
Why do we use class?
What are the three parts of a simple empty class?
Write a program to compute for numeric grades for a course. The course records are in a file that will serve as the input file. The input file is in exactly the following format: Each line contains a student's first name, then one space, then ten quiz scores all on one line. The quiz scores are in whole number and are separated by one space. Your program will take it input from this file and sends it output to a second file. The data in the output file will be exactly the same as the data in the input file except that there will be one additional number (of type double) at the end of each line. This number will be the average of the student's ten quiz scores. Use at least one function that has file streams as all or some of its arguments.
what are the ways in which a constructors can be called?
What is a class and object?
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 polymorphism and example?
Give an example where we have to specifically use C programming language and C++ programming language cannot be used?
Can abstract class have normal methods?