Multiple choice technology programming languages

You can override private virtual methods?

  1. True

  2. False

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Private methods cannot be overridden because they are not accessible outside the class in which they are defined. Overriding requires the method to be visible to derived classes, and private methods are explicitly restricted to the defining class only. Even if a private method is marked virtual, the private access modifier takes precedence for accessibility.