Learn how to create a class hierarchy using base and derived classes and how to hide or override members of a derived class by using new, virtual, abstract, and override keywords.
Learning objectives
- Describe the principles of class inheritance.
- Configure base and derived classes.
- Hide the members of a base class by using the
newkeyword. - Override the members of a base class by using the
virtual,override, andabstractkeywords. - Access the members of a base class from within a derived class.
- Implement a class hierarchy in a C# app by using base and derived classes.
Leave a Reply