Inheritance is an aspect of OOPs languages, which provides the ability of a program to create a new class from an existing class. It is a mechanism which acquires the properties and behaviors of a class from another class. The class whose members are inherited is called the base class, and the class that inherits those members is called the derived/child/subclass. In child class, we can override or modify the behaviors of its parent class.
Before ES6, JavaScript uses functions and prototype-based inheritance, but TypeScript supports the class-based inheritance which comes from ES6 version. The TypeScript uses class inheritance through the extends keyword. TypeScript supports only single inheritance and multilevel inheritance. It doesn't support multiple and hybrid inheritance.
Our Website: www.technofunnel.com
Medium Channel: / mayank-gupta-6-88
Connect me on LinkedIn: / mayank-gu. .
LinkedIn Company Details: / 7159. .
Facebook Page: / learnjavascr. .
About TechnoFunnel:
We provide Corporate and Professional training on the latest Technologies. Trainings bring you in par with Industrial Standards. We help you to prepare for interviews in Different Domains. Mock Interview Questions and Interviews. Confused about your career? We offer you professionals to help shape your career. Connect us for the same. We are focussed towards the bringing the Industrial Standard Software Programing Courses
#javascript #typescript #frontend #programming #typescriptbasics