What's the difference between 'extends' and 'implements' in TypeScript
I would like to know what man and child have in common and how they differ. class Person { name: string; age: number; } class child extends Person {} class man implements Person {} Radim Köhler Short version extends means: The new class is a child . It gets benefits coming with inheritance. It has all properties, methods as its parent. It can override some of these and implement new, but the parent stuff is already included. implements means: The new class can be treated as the same "shape" , while it is not a child . It could be passed to any method where the Person is required, regardless of