Inheritance and Subclasses (C#)
OOPA-levelLesson packSubscription
About this resource
Understand how one class can inherit from another in C#, how to use : base() to call the parent constructor, and how to use is for type checking.
11 slides.
Lesson outline
- Is-A or Has-A?
- The Is-A Relationship
- Writing a Subclass in C#
- Dog Inherits From Animal: Live Demo
- UML: Inheritance Arrow
- `is` — Type Checking in C#
- Python vs C#: Inheritance Syntax
- Coding Practice: Animal Hierarchy
- Lesson Summary
Unit bundleUnit 3A · Inheritance and Subclasses


