You don't have a constructor that allows the parameter you give it. Your Square constructor asks for 4 ints, not just one.