Summary
Recap the topics covered in this chapter.
We'll cover the following
In this chapter, we covered several key topics related to inheritance in TypeScript. We can distill the key takeaways from this chapter:
-
We started with an introduction to inheritance, explaining how it allows us to create new classes that inherit properties and methods from existing classes. We also talked about how inheritance can help you create more maintainable code by reducing duplication and improving code reuse.
-
We then discussed the
super
function and function overriding. The super function allows us to call a method from a parent class, while function overriding allows us to replace a method in the parent class with a new implementation in the child class.
Get hands-on with 1200+ tech skills courses.