Skip to main content

What is the use of the base keyword?

Senior C#
Quick Answer The base keyword accesses parent class members from within a derived class. Use it to call parent constructors (base(params)) or invoke the parent version of an overridden method (base.MethodName()). It is the only way to explicitly call a method you have overridden.

Answer

The base keyword accesses parent class members from derived classes.

It is used to call parent constructors or access overridden members.

S
SugharaIQ Editorial Team Verified Answer

This answer has been peer-reviewed by industry experts holding senior engineering roles to ensure technical accuracy and relevance for modern interview standards.

Want to bookmark, take notes, or join discussions?

Sign in to access all features and personalize your learning experience.

Sign In Create Account

Source: SugharaIQ

Ready to level up? Start Practice