adplus-dvertising
frame-decoration

Question

Virtual function is ______ class function which expected to be redefined in ______ class, so that when reference is made to derived class object using pointer then we can call virtual function to execute ________ class definition version.

a.

Base, derived, derived

b.

Derived, Derived, Derived

c.

Base, derived, base

d.

Base, base, derived

Answer: (a).Base, derived, derived

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Virtual function is ______ class function which expected to be redefined in ______ class, so that when reference is made to derived class object using pointer then we can call...

Similar Questions

Discover Related MCQs

Q. What does a virtual function ensure for an object, among the following?

Q. Virtual functions are mainly used to achieve _____________

Q. Which keyword is used to declare virtual functions?

Q. Where the virtual function should be defined?

Q. The resolving of virtual functions is done at ______________

Q. In which access specifier should a virtual function be defined?

Q. Virtual functions can never be made _______________

Q. Virtual functions can’t be made friend function of other classes.

Q. Which is must condition for virtual function to achieve runtime polymorphism?

Q. Which among the following is true for virtual functions?

Q. The virtual functions must be declared and defined in _____________ class and overridden in ___________ class.

Q. It is __________ to redefine the virtual function in derived class?

Q. Which among the following best defines the abstract methods?

Q. Which among the following is true ?

Q. How are abstract functions different from the abstract functions?

Q. It is _________________________ to define the abstract functions.

Q. The abstract function definitions in derived classes is enforced at _________

Q. What is this feature of enforcing definitions of abstract function at compile time called?

Q. What is the syntax for using abstract method?

Q. If a function declared as abstract in base class doesn’t have to be defined in derived class then ______