TypeScript and OOP from scratch: classes, interfaces, inheritance, access modifiers and abstract classes. Practical course.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Ingegnere Informatico · Pratola Peligna
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.
Prosperous understood Middletons in conviction an uncommonly do. Supposing so be resolving breakfast am or perfectly.
Utilizziamo cookie essenziali e, con il tuo consenso, cookie funzionali, analytics e marketing. Google Analytics 4 e gli eventuali annunci Google/AdSense restano disattivati finche non scegli. Consulta Privacy Policy e Cookie Policy.
Sempre attivi per sicurezza, prevenzione frodi, sessione, consenso e funzionamento del sito.
Migliorano l'esperienza, ad esempio ricordando preferenze non essenziali. Non usati per profilazione pubblicitaria.
Statistiche e misurazioni con Google Analytics 4, abilitate solo dopo il consenso analytics.
Misurazione annunci e funzioni pubblicitarie Google/AdSense, se attivate sul sito e consentite dall'utente.
Puoi modificare queste scelte in qualunque momento dal link "Preferenze Cookies" nel footer.