When to use an interface?

  • Authors:
  • Chenglie Hu

  • Affiliations:
  • Carroll College, Waukesha, Wisconsin

  • Venue:
  • ACM SIGCSE Bulletin
  • Year:
  • 2006

Quantified Score

Hi-index 0.00

Visualization

Abstract

Interface, as an object-oriented programming construct, has been one of the most difficult concepts for students to understand and apply properly. Textbooks often only address the shallow side of usefulness of interfaces, and some may even mislead as to when and how an interface should be used. This article argues that the interfaces can only be effectively taught in a context of program design. The material is appropriate to be included in a second course on programming.