`This assignment focuses on mastering the fundamentals of TypeScript. You are required to:

Define and use basic types: Create variables using string, number, boolean, and array types.

Implement interfaces and types: Design at least two interfaces and one type alias to model real-world objects.

Use classes and inheritance: Implement a class hierarchy demonstrating inheritance, encapsulation, and access modifiers.

Generics: Create a generic function or class to handle different data types.

Error handling: Implement proper error handling using try-catch blocks where necessary.

Your submission should include:

A .ts file or a zipped folder containing all your TypeScript code.

Comments explaining each section of your code.

Screenshots demonstrating that your code compiles without errors.

Deadline: Please submit your assignment before the due date. Late submissions may incur a deduction of marks.`