nerdexam
Microsoft

98-361 · Question #187

Which type of function can a derived class override?

The correct answer is A. A Protected Overridable member function. The Overridable modifier allows a property or method in a class to be overridden in a derived You cannot specify Overridable or NotOverridable for a Private method.

Understanding Object-Oriented Programming

Question

Which type of function can a derived class override?

Options

  • AA Protected Overridable member function
  • BA Shared function
  • CA Private Overridable function
  • DA non-overridable public member function

How the community answered

(25 responses)
  • A
    80% (20)
  • B
    4% (1)
  • C
    12% (3)
  • D
    4% (1)

Explanation

The Overridable modifier allows a property or method in a class to be overridden in a derived You cannot specify Overridable or NotOverridable for a Private method.

Topics

#method overriding#access modifiers#virtual methods#inheritance

Community Discussion

No community discussion yet for this question.

Full 98-361 Practice