Answer Posted / poonam
Virtual function is a function that uses keyword "virtual"
with the datatype of the function. When the base class as
well as the derived class contains a function both having
the same name, just to resolve ambiguity and copy of the
same data again and again we use the keyword "virtual"
preeceeding it. It is used to achieve poymorphism.
Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
What is static modifier?
How can you overcome the diamond problem in inheritance?
Which language is not a true object oriented programming language?
What is difference between oop and pop?
Why do we need oop?
Can abstract class have normal methods?
What are two types of polymorphism?
Why is it so that we can have virtual constructors but we cannot have virtual destructors?
what are the different types of qualifier in java?
What is the purpose of enum?
can we make game by using c
How to call a non virtual function in the derived class by using base class pointer
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 three parts of a simple empty class?
#include