Why cannot find a class or type named "Box"

You define constructor without parameters, but you use constructor new Box(mouseX,mouseY) two parameters. That causes the error.

2 Likes