Creating Object-oriented TypeScript Code

This course dives into object-oriented TypeScript code, teaching you about object-oriented principles and how they can be applied to your TypeScript applications. Learn about objects, classes, inheritance, abstract classes, interfaces, and more.
Course info
Level
Beginner
Updated
Nov 27, 2019
Duration
2h 11m
Table of contents
Description
Course info
Level
Beginner
Updated
Nov 27, 2019
Duration
2h 11m
Description

TypeScript supports many different ways to define and create objects which can be confusing especially when you're new to the language. Should you use a constructor function, Object.create(), classes, a coding pattern, or some other technique when creating objects? In this course, Creating Object-oriented TypeScript Code, you'll learn different ways to create objects while focusing on object-oriented programming (OOP) techniques that can be used to maximize reuse and enhance productivity. First, you'll explore the core principles of object-oriented programming, such as encapsulation, polymorphism, inheritance, and abstraction, and see how they can be applied and used. Next, you'll discover how to define and instantiate classes in TypeScript, understand what members can be added to a class and the role they play. Then, you'll delve into how inheritance can be used to promote reuse, and what an abstract class is and why you'd use one. Finally, you'll learn about the role of interfaces and how they can be used to create code contracts that drive consistency across a set of objects and enable polymorphic behavior. When you're finished with this course, you'll have the skills and knowledge needed to build robust object-oriented applications using the TypeScript language and understand when and why to apply object-oriented programming principles.

About the author
About the author

Dan Wahlin founded Wahlin Consulting, which provides consulting and training services on JavaScript, Angular, Node.js, C#, ASP.NET MVC, Web API, and Docker. He is a Google GDE, Microsoft MVP and Regional Director, and speaks at conferences and user groups around the world.

More from the author
Kubernetes for Developers: Core Concepts
Beginner
4h 35m
Sep 16, 2019
Angular Architecture and Best Practices
Intermediate
5h 22m
Jan 15, 2019
More courses by Dan Wahlin
Section Introduction Transcripts
Section Introduction Transcripts

Course Overview
[Autogenerated] hi there, and welcome to the creating object oriented typescript code course. My name's Dan Walling, and I'm a software developer, architect and trainer specializing in Web development technology. I've had the opportunity to use typescript extensively over the years, and I'm really excited to share Maura about the language with you. The overall goal of this course is to teach you about object or in, and principles and how they could be used in your typescript application. The core starts out by examining the role of objects and the different techniques that could be used to create them. You'll also be introduced to key object or and principles, including abstraction, encapsulation, inheritance and polymorphism, one of the key building blocks available in optical ran and programming his classes. You'll learn about what classes, how to define and Stan She ate one and how to add instance and static members to a class. Productivity techniques such as automatic properties will also be covered along the way. From there, you'll learn about what inheritances and the role of abstract classes. You'll see how abstract classes could be used as the foundation for other classes and how they can be used. Add polymorphic behavior to object. As the course progresses, you'll also learn about interfaces and how they could be used as code contracts to Dr Consistency across the object or to find the shape of a non. You'll then see how to implement an interface on a class and how to use one to provide more flexibility for constructors and methods. Finally, you'll see how to put all of the concept together so that you understand the role each object or in principle, comm play and, more importantly, understand when and when not to use them. So let's get started by talking about the specific modules covered in the course and dive into the role objects can play in typescript applications.