Interfaces in Java


Today's notes - Interfaces

Terminology

interface
An interface specifies behavior for a class. - Gaddis definition

It is also the keyword that defines the interface

implements
the java keyword that indicates that a class is implementing a specified interface

Notes

Syntax

declaration
visibility interface name

using
visibility class name implements interfaceName

Examples

Relatable.java
FinalExam3.java
InterfaceDemo.java
GradedActivity.java


CS 239 - Fall 2006
Department of Computer Science Nancy Harris Home Page Current Classes Link