Skip to main content

What is the base keyword?

Junior C#
Quick Answer The base keyword lets a derived class access its parent's members. Most commonly used to call the parent constructor via base(param), or invoke the parent version of an overridden method via base.MethodName(). Without it, there is no way to reach the parent's overridden implementation.

Answer

The base keyword is used in a derived class to access members of the parent class.

It is useful for calling parent constructors or overridden methods.

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