Place ; in front of these return statements, keep the method's return statement as Point or any other Point's parent class.