<div dir="ltr"><div>Can i mask the parent attibutes in the child. let me give a quick example.<br><br>In [1]: class a:<br>   ...:     value1 = 1<br>   ...:     value2 = 2<br>   ...: <br><br>In [2]: class b(a):<br>   ...:     value3 = 3<br>

   ...:     <br><br>In [3]: obj1 = b()<br><br>In [4]: obj1.value1<br>Out[4]: 1<br><br>In [5]: obj1.value2<br>Out[5]: 2<br><br>In [6]: obj1.value3<br>Out[6]: 3<br><br></div>If you notice in the below example you will see that the child class object ``obj1`` has inherited all the attibutes of the parent class. Is there a way by which i can make the child class not inherit some of the properites of parent class.<br>

<div><br clear="all"><div><br>-- <br>D. Santosh Kumar<br><br><br>
</div></div></div>