What is virtual function?where and when is it used?
Answer Posted / reshma khan pathan
In object-oriented programming, a virtual function is a
function whose behavior can overridden by a function of
same signature of inherited class.
Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
What are constructors in oop?
What are main features of oop?
Why oops is important?
What is an example of genetic polymorphism?
What is coupling in oop?
What does and I oop mean?
What is a function in oop?
Can we create object of abstract class?
What is polymorphism and why is it important?
Explain virtual inheritance?
How do you answer polymorphism?
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 is polymorphism explain?
write string class as your own class in java without using any built-in function
Why do we use polymorphism?