Syntax to inherit a class from another class in C#

Write the syntax to inherit a class from another class in C#?

E

Expert

Verified

When the class is derived from other class, then the members of a base class become the members of a derived class. The access modifier is used during accessing members of a base class which specifies a access status of a base class members inside a derived class.

The syntax to inherit a class in C# is:

class MyNewClass : MyBaseclass

   Related Questions in Software Engineering

©TutorsGlobe All rights reserved 2022-2023.