CPSC 233 Lecture 10: 7march

38 views3 pages

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.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents