You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, if the user gives the methods an invalid type, the class handles it silently, but the user doesn't know what is happening. For instance, calling Point2D(2.0) would create the point (0,0) because the constructor would detect that no y was passed. This should launch an exception.
The text was updated successfully, but these errors were encountered:
Currently, if the user gives the methods an invalid type, the class handles it silently, but the user doesn't know what is happening. For instance, calling Point2D(2.0) would create the point (0,0) because the constructor would detect that no y was passed. This should launch an exception.
The text was updated successfully, but these errors were encountered: