previous | start | next

Inheritance Introduction

1. Inheritance can be viewed as a technique for creating a new class from
an existing class.

2. Classes define "types". If B is a new class created by
inheritance from an existing class A, the informally:

  - "type" B is a kind of A
  - B is a subtype of A
  
   


previous | start | next