H+Object+Oriented+Language+Questions

1. Copy the class diagram below Add at least 5 sub classes Add additional attributes and methods where appropriate



2. Below is a very simple Java class definition with attributes and methods (although there is no actual code for simplicity):

(a) What are the names of the class attributes? (b) What are the names of the class methods?

3. Below is an extract of code from a Java class definition: The class ElectricGuitar is a subclass of which class?