previous | index | next

Quality of Class Interfaces

Name and describe the five criteria used to analyze the quality of an interface to a class.

  1. Cohesion: all operations provided by the interface revolve around a common purpose
  2. Completeness: all operations that make sense for the class are supported by the interface
  3. Convenience: the interface makes common tasks simple
  4. Clarity: the interface does not confuse programmers
  5. Consistency: the operations for an interface have matching names, parameters, return values, and behavior

previous | index | next