1. a. Define a class Triangle that implements the interface Measurable, as given.
b. What statements could you add to the program to demonstrate the class Triangle?
2. Consider the class Triangle described. Would it be legal to pass a Triangle object to the methoddisplay, as defined, as an argument corresponding to the parameter shape?
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here