﻿class Person
{
    // Attributes
    private _name: string;

    // Constructor
    constructor(name: string)
    {
        this._name = name;
    }

    // Properties
    get Name(): string
    {
        return this._name;
    }

    // Methods
} 

// Inherit from Person class
class Student extends Person
{
    // Attributes
    private _course: string;

    // Constructor
    constructor(name: string, course: string)
    {
        super(name);    // Pass name to parent class constructor
        this._course = course;
    }

    // Properties
    get Course(): string
    {
        return this._course;
    }

    // Methods
}