Object
Interfaces: In one word, the interfaces are the place
holder or a reference book, that keeps the list of
functions without defining their types or contents.
Later you call them as you please.
Object interfaces
allow you to create code which specifies which methods a
class must implement, without having to define how these
methods are handled.
Interfaces are defined
using the interface keyword, in the same way as a
standard class, but without any of the methods having
their contents defined.
All methods declared
in an interface must be public, this is the nature of an
interface.
- To implement an
interface, the implements
operator is used.
- All the
functions in an interface must
be implemented within a class; else will
result in a fatal error. (Click Me)
- Classes may implement more
than one interface and have their own functions.