Answer Posted / pawan kumar
Virtual methods have an implementation and provide the derived classes with the option of overriding it. Abstract methods do not provide an implementation and force the derived classes to override the method. So, abstract methods have no actual code in them, and subclasses HAVE TO override the method.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Why is it so that we can have virtual constructors but we cannot have virtual destructors?
What is interface? When and where is it used?
What is balance factor?
any one please tell me the purpose of operator overloading
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 oop?
What are oops methods?
How do you explain polymorphism?
what is graphics
write knight tour problem which is present in datastructure
Explain virtual inheritance?
Explain the advantages of inheritance.
What is destructor oops?
What is polymorphism explain its types?
How Do you Code Composition and Aggregation in C++ ?