Describe a component from a text-editor GUI (other than an “edit” menu)
and the member functions that it encapsulates.
Draw a class inheritance diagram for the following set of classes.
• Class Goat extends Object and adds a member variable tail and
functions milk and jump.
• Class Pig extends Object and adds a member variable nose and functions eat and wallow.
• Class Horse extends Object and adds member variables height and
color, and functions run and jump.
• Class Racer extends Horse and adds a function race.
• Class Equestrian extends Horse and adds a member variable weight
and functions trot and isTrained.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here