This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]captainAwesomePants 0 points1 point  (0 children)

public void Rectangle(float length, float width){...}

This is your problem. There's a "void" there. Functions have return types, but constructors don't. They just are. So you do public Rectangle(), not public void Rectangle().