CPSC 233 Lecture 10: 7march
Document Summary
Interfaces can extend one or more super-interfaces: a sub-interface inherits all the constants and method declaraions from its super- interfaces. Eg: public interface measurable extends weight, volume, velocity. An interface is represented like a class, stereotyped with <> A class that implements the interface shows the interface as small atached circle: you can also show that the class realizes the interface with a dashed open arrow. - - - - - - - - - - - - - point. A second class that uses the interface implemented by the irst depends on that interface: dependency is shown with a dashed arrow.