Frontend JavaScript

TypeScript in Practice: First Steps in OOP

TypeScript and OOP from scratch: classes, interfaces, inheritance, access modifiers and abstract classes. Practical course.

Course description

TypeScript and OOP: Learn Object-Oriented Programming the Practical Way

TypeScript adds static typing and true OOP to JavaScript, making it a powerful tool for building scalable applications. In this course I guide you from your first steps with the TypeScript Compiler all the way to abstract classes and inheritance, with a practical and progressive approach suitable for those starting OOP from scratch.

What You'll Learn

  • Install and configure the TypeScript Compiler (tsc) and the tsconfig.json file
  • Variable types: basic, union, tuple, and custom types
  • Type aliases and Interfaces: when to use them and how
  • Simple functions, arrow functions, optional parameters, and default values
  • Modules: export, import, and export default
  • Classes: attributes, constructors, and method overloading
  • Access modifiers: public, private, and protected
  • Inheritance, super, and abstract classes with override

A Gradual Approach, One Concept at a Time

Each lesson introduces a new concept building on the previous one. We don’t jump from zero to advanced: we build a solid foundation, lesson by lesson. The code you write is compilable from the very first video — you see the result immediately and understand what the TypeScript compiler does.

Who This Course Is For

Designed for JavaScript developers who want to add TypeScript to their toolkit and for those approaching OOP for the first time. If you use Angular, React, or Node.js and want to write more robust and maintainable code, this course gives you the foundations you’re missing.

Lessons list

I'll show you how to install the TypeScript Compiler (tsc), create your first .ts file, and compile it to JavaScript. Let's understand what compilation is and why TypeScript is so useful for writing more robust and scalable code.

Guarda lezione

I'll explain how to create and configure the tsconfig.json file to automate the compilation of all TypeScript files into the output folder. Once set up, a single command is all you need to compile the entire project.

Guarda lezione

Let's explore the variable types available in TypeScript: basic types like string and number, union types to accept multiple values, and tuples for fixed-structure arrays. I'll show you practical examples for when and how to use each one.

Guarda lezione

I'll explain the difference between type aliases and interfaces in TypeScript — two powerful tools for defining the shape of your data. Let's look at concrete examples and understand when to prefer one over the other.

Guarda lezione

I'll show you how to write functions in TypeScript: from classic syntax to arrow functions, optional parameters, and default values. Let's see how static typing makes functions safer and more readable.

Guarda lezione

I'll explain how to organize TypeScript code into reusable modules using export and import. Let's see how to export functions, classes, and types to keep the project clean and well-structured.

Guarda lezione

Let's explore how to use export default to export a class as the main entity of a module. I'll show you why this approach promotes single responsibility, making the code more readable and maintainable.

Guarda lezione

I'll show you how to define a class in TypeScript, declare typed attributes, and create constructors. We'll also cover how to implement method overloading to handle different signatures with a single implementation.

Guarda lezione

I'll explain how the public and private access modifiers work in TypeScript. Let's see how to use them to control the visibility of properties and methods, and protect the internal state of a class.

Guarda lezione

Let's explore how to extend a class with inheritance in TypeScript, using super to call the parent class constructor. I'll also explain the protected modifier, which allows subclass access while maintaining encapsulation.

Guarda lezione

I'll show you how to define abstract classes and abstract methods in TypeScript to create contracts that derived classes must fulfill. Let's see how to use override to explicitly and safely redefine inherited behavior.

Guarda lezione
Giovanni Pace

Giovanni Pace

Ingegnere Informatico · Pratola Peligna

  • 107 Courses
About the teacher

Sono un ingegnere informatico con oltre 15 anni di esperienza nel settore ICT. Mi occupo di sviluppo software, cybersecurity, data science e intelligenza artificiale, con particolare attenzione all’innovazione e all’automazione dei processi aziendali. Da anni svolgo anche attività di docenza e formazione, creando percorsi pratici e coinvolgenti su programmazione, DevOps, AI e sicurezza informatica.

This course includes

  • Lessons 11
  • Duration 1h 31m
  • Difficulty base
  • Language it
  • Certificate No

Recently viewed