# L-26 MCS 260 Fri 11 Mar 2016 : classpoint

"""
Base class to start illustrating inheritance.
"""

class Point(object):
    """
    defines a point in the plane
    """
    def __init__(self, a=0, b=0):
        """
        constructs a point in the plane
        """
        self.xpt = a
        self.ypt = b

    def __str__(self):
        """
        returns the string representation of a point
        """
        return '( %.4e, %.4e )' % (self.xpt, self.ypt)
