class Point2D:
'''
A 2D point in Cartesian coordinates.
'''
def __init__(self, xCoord: float, yCoord: float) -> None:
self.xCoord = xCoord
self.yCoord = yCoord
def __str__(self) -> str:
'''
Converts the Point2D object to a string.
'''
return f'({self.xCoord}, {self.yCoord})'