Inheritance
Creating a class that receives accessible members from another class.
What is Inheritance in C#?
Inheritance — Creating a class that receives accessible members from another class.
class Alert
{
public virtual string Text()
{
return "Alert";
}
}
class EmailAlert : Alert
{
public override string Text()
{
return "Email";
}
}
Level: Journeyman · More C# terms at this level
Updated