class decleration in python using object
<pre><code>!/usr/bin/env python

class SportsCar(object):

        def __init__(self,make,colour):
                self.make = make
                self.colour = colour
                self.horn = "BEEEEEEEEPPPPPPP"

        def honk(self):
                #now we can make some noise!
                print self.make,'  ',self.colour,'  ',self.horn
                print "Done "


mycar = SportsCar('Honda','silver')
#print mycar.make 
#print mycar.colour

mycar.honk()


print "Good Bye!!"
</code></pre>

<p>The output of the above code is given below.</p>

<p>Honda    silver    BEEEEEEEEPPPPPPP
Done 
Good Bye!!</p>

<p>what is the difference between the declerations</p>

<p>class SportsCar:</p>

<p>and</p>

<p>class SportsCar(object):
I have been seeing both the decleration in different places and both of them produces the same result.</p>
