Exercise 7 ?Java-to-UML B Draw a UML diagram to show the relationships between classes expressed in the following Java outline: class Component { } interface KeyboardListener { void keyPressed(); void keyReleased(); } class MyButton extends Component implements KeyboardListener { void keyPressed() { // instructions describing what // to do when a key is pressed } void keyReleased() { // instructions describing //what to do when a key is released } } Discussion of Exercise 7 Back to content Back to top  RITSEC - Global Campus Copyright © 1999 RITSEC- Middlesex University. All rights reserved. webmaster@globalcampus.com.eg
|