<<< Encapsulation and Inheritance     Index     Class implementation >>>

2. Class interface


  • Interface is a fundamental means of communication between objects.

  • Each class design specifies its public interface or a combination of interfaces.

  • All attributes should be declared private...

    • ...thus, attributes are not part of the interface.

    interface
<<< Encapsulation and Inheritance     Index     Class implementation >>>