TypeScript | TypeScript Object Oriented Programming | Question8

Last Updated :
Discuss
Comments

What happens if a class does not implement all properties of an interface it claims to implement?

It compiles but logs a warning.

It throws a runtime error.

It fails to compile.

It silently ignores the missing properties.

Share your thoughts in the comments