[BangPypers] how to delete base class attribute

Srinivas Reddy Thatiparthy srinivas_thatiparthy at akebonosoft.com
Thu Jul 29 13:16:09 CEST 2010


>>fine, but isn't there any way to hide few function of base class into
>>derived one???

I didn't get what is meant by hiding?
You can override the function/method of base class in sub class.
In that method, you can modify the behaviour for subclass or 
raise an exception or simply include 'pass'.

Anyway, deleting any property of a class in it's subclasses clearly violates the liksov substitution principle.


More information about the BangPypers mailing list