1. A pet has a breed, a name, and a sound. Write the UML notation for the interface PetInterface describing the behaviors all pets should have. Define the interface in Java as well as three classes that implement the interface. Finally, write a program that demonstrates the three classes.
2. Revise the class ClickDiskPanel, so that the disk turns gray when the mouse button is pressed but returns to blue when the mouse button is released.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here