🎴 Flashcard Mode

C# and .NET Programming Fundamentals

Card1 / 20
Mastered0
Review0
QuestionClick to flip

What is the keyword used in overriding

AnswerClick to flip back
A
virtual,override
💡 Explanation:

In C#, method overriding requires the base class method to be marked 'virtual' (or abstract) and the derived class method to be marked 'override'. The 'virtual' keyword allows the method to be overridden, while 'override' explicitly indicates that the method overrides a base class method. 'new' hides the base method, 'base' calls the base class implementation.

Change Mode