Invalid method declaration, return type required
- by Brett Steen
I am getting an error at public Rectangle(double width, double height){ saying that it's an invalid method declaration, return type required. I'm not sure how to fix it. These are also my instructions for my assignment:
Write a super class encapsulating a rectangle. A rectangle has two attributes representing the width and the height of the…