Please help me in understanding Class in Python
<p>I am newbie and finding it very hard to grasp the syntax of Class in python. I have a background of C/C++, java and objective C. A very big difference which i am noticing in python is that you don't explicitly declare the "data members" in the class and you just randomly add them? And it leads to quite big confusion.</p>

<p>Let say i have a class</p>

<pre><code>class MyClass:

    def __int__(self, a, b):

        self.a = a

        self.b = b
</code></pre>

<p>And then when i initiate the object.</p>

<pre><code>myobject = MyClass(10,10)
</code></pre>

<p>And just after some time for some reason i come to know that i need another parameter in this class but i dont wanted to initiate that using constructor because it will be initiated by another function depending on the some particular condition, so in whole mess of code that will be only point that variable actually get birth. is not the case when i will be checking the code while debugging or reviewing it for some other reason it will be confusing?</p>
