Inheritance

This file contains two classes defined in script: Person and Employee, where Employee derives from Person.

Each class has private fields, and public properties and methods. In addition, Employee overrides the toString implementation, and in doing so, it uses the base class functionality.

This example puts the Person class in the "Demo" namespace.