Thanks for the reply.
you said
Please look at this code below. There is no inheritance here.
--------
I am moving!
I am using Python interpreter 3.4
I am getting confused now ..does class Mario() : and class Mario: is same thing in Python 3 ?
comments please. what I'm missing ?
you said
Quote: So in Python 3 there is no ().
() only come in play when it's Inheritance.
Please look at this code below. There is no inheritance here.
class Mario(): def move(self): print('I am moving!') bm = Mario() bm.move()Output:
--------
I am moving!
I am using Python interpreter 3.4
I am getting confused now ..does class Mario() : and class Mario: is same thing in Python 3 ?
comments please. what I'm missing ?