Lecture overview -- Keyboard shortcut: 'u'  Previous page: Inheritance in C# [Section] -- Keyboard shortcut: 'p'  Next page: The top of the class hierarchy -- Keyboard shortcut: 'n'  Lecture notes - all slides and notes together  slide -- Keyboard shortcut: 't'  Textbook -- Keyboard shortcut: 'v'  Help page about these notes  Alphabetic index  Course home  Page 21 : 40
Object-oriented Programming in C#
Specialization, Extension, and Inheritance
Class Inheritance in C#

class-modifier class class-name: super-class-name{

A C# class defined as a subclass of given superclass

class A {}

class B: A {}

A class A and its subclass B. Or a class B and its base class A.

The class B inherits from class A

B is said to be a subclass of A, and A a superclass of B. A is also called the base class of B.