﻿import { Student } from './Student.js';
import { Person } from './Person.js';

(() => {
	let output: string = "";

	function DisplayLine(text: string): void
	{
		output = output + text + "\n";
	}

	// Using inheritance
	let theStudent: Student;
	let thePerson: Person;

	theStudent = new Student("Fred", "Web");
	thePerson = new Student("Bob", "CIS");
	DisplayLine("Student details are " + theStudent.Name + " studying " + theStudent.Course);
	DisplayLine("Your name is " + thePerson.Name);

	console.log(output);
})();
