JAVA Session07
JAVA Session07
Objectives
Shape
Uses of Interfaces:
Declaring methods that one or more classes are expected to
implement
Determining an object’s programming interface without
revealing the actual body of the class
Capturing similarities between unrelated classes without
forcing a class relationship
Simulating multiple inheritance by declaring a class that
implements several interfaces