Base Class

noun

say it: “BAYS klas” /beɪs klæs/

The class another class inherits from.

What is Base Class in C#?

Base Class — The class from which another class inherits.

class Alert
{
    public virtual string Text()
    {
        return "Alert";
    }
}

class EmailAlert : Alert
{
    public override string Text()
    {
        return "Email";
    }
}

In a sentence

  • “Book is the base class, and Ebook and Audiobook inherit from it.”

Level: Journeyman · More C# terms at this level

Updated

In other subjects