FreshWorks Studio interview question

What is an interface?

Interview Answer

Anonymous

13 Aug 2018

An interface is like a contract. It contains method definitions. If a class were to implement that interface, it would "sign" the contract and have to contain the methods that were defined in the interface.