Interfaces are named collections of method signatures.
To run the program, save it as Interfaces.swift and use swift command:
In Swift, we use protocols instead of interfaces. Protocols define a blueprint of methods, properties, and other requirements that suit a particular task or piece of functionality. The struct or class then provides an actual implementation of those requirements, thereby adopting the protocol.