1. Define a class QuahogPanel that creates a panel displaying two Quahog objects in different positions. Define a driver DisplayQuahog that creates a frame and adds a QuahogPanel object to it.
2. Add a constructor to QuahogPanel that sets its data fields to the two Quahog objects passed to it as arguments. Revise the class DisplayQuahog to demonstrate this new constructor.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here