Thursday, May 31, 2018

What’s an INTERFACE?

They're used to specify methods and properties that a derived class
will have access to.

  • Like a contract. If a class implements an interface, the interface guarantees that the class contains specific methods specified.
  • Interfaces DOES NOT contain code or data
A class can implement any no.of interfaces, and interfaces can be instantiated.


No comments:

Post a Comment