Issues with classes in python
<p>I'm new to using classes, and am stumped why this error is occurring. Thanks for any help. Directions for assignment:  Accessor methods getStartTime and getEndTime that return their respective values.
Mutator method named start that will reset the startTime to the current time.</p>

<pre><code>from time import time
class Stopwatch: 
def __init__(self, startTime, endTime):
    self.startTime =time()
    self.endTime=time()

def getStartTime(self):
    return float(self.startTime)


def getEndTime(self):
    return float(self.endTime)

def start(self):
    self.endTime=time
    return float(self.startTime)


def stop(self):
    self.endTime=time
    return float(self.startTime)

&gt;&gt;&gt; a=Stopwatch
&gt;&gt;&gt; a.getStartTime(a)
Traceback (most recent call last):
  File "&lt;pyshell#24&gt;", line 1, in &lt;module&gt;
    a.getStartTime(a)
  File "/Users/baileyrockwell/Documents/hw9.py", line 55, in    getStartTime
    return float(self.startTime)
AttributeError: type object 'Stopwatch' has no attribute 'startTime'
</code></pre>