TypeScript | TypeScript Object Oriented Programming | Question9

Last Updated :
Discuss
Comments

How do you declare that a class implements multiple interfaces?

class MyClass extends Interface1, Interface2 {}

class MyClass implements Interface1, Interface2 {}

class MyClass inherits Interface1, Interface2 {}

class MyClass extends Interface1 implements Interface2 {}

Share your thoughts in the comments