# L-14.5 MCS 260 Fri 14 Jul 2014 : 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 string representation of a point"
        return '( %.4e, %.4e )' % (self.xpt, self.ypt)
