nerdexam
Microsoft

98-361 · Question #54

Which type of function can a derived class override?

The correct answer is C. a protected virtual member function. You can override virtual functions defined in a base class from the Visual Studio. The override modifier is required to extend or modify the abstract or virtual implementation of an inherited method, property, indexer, or event.

Understanding Object-Oriented Programming

Question

Which type of function can a derived class override?

Options

  • Aa non-virtual public member function
  • Ba private virtual function
  • Ca protected virtual member function
  • Da static function

How the community answered

(26 responses)
  • A
    8% (2)
  • B
    19% (5)
  • C
    69% (18)
  • D
    4% (1)

Explanation

You can override virtual functions defined in a base class from the Visual Studio. The override modifier is required to extend or modify the abstract or virtual implementation of an inherited method, property, indexer, or event.

Topics

#virtual functions#method overriding#access modifiers#polymorphism

Community Discussion

No community discussion yet for this question.

Full 98-361 Practice