brenyasanders9546 brenyasanders9546
  • 25-07-2019
  • Computers and Technology
contestada

What are virtual functions? Explain the mainfeatures of virtual functions.

Respuesta :

Cetacea
Cetacea Cetacea
  • 26-07-2019

Answer: Virtual function are the function which are declared with the virtual keyword .It is declared in the base class.

Explanation: Virtual function is sort of member function that is present in the base class and is responsible for checking that right function is being called whatever pointer may be used for function call.

Main feature of the virtual function is that it can be overridden or replace the member function of the base class .It is a member function which has the capability of being redefined again in the other class.

Answer Link

Otras preguntas

What is the equation of 7x=5+5x
What is the force exerted by a solid surface that opposes gravity?
1.2k+2.4 Factor out the coefficient of the variable and find the greatest common factor
Which of the following statements is true of Singapore? A. Singapore is member of the Federation of Malaysia. B. Singapore is a major manufacturer of computer
what is 54 divided 6 equal blank times 3
to find the product 3/7x4/9 ,Cameron simplified 3/7 to 1/7 and then multiplied the fractions 1/7 and 4/9 to find the product 4/63. What is Cameron's error?"
What is the name for (NH4)2SO3 . H2O?
What questions would you ask a state representative?
1.An 8-kilogram bowling ball is rolling in a straight line toward you. If its momentum is 16 kg•m/s, how fast is it traveling? 2.A beach ball is rolling in a st
The solid has a mass of 180g. What is the density of the solid?