I am learning python and inheritance. Are special methods - methods prefixed with __ inherited. i tried this code:
class a:
def __str__(self):
return "this is object of class a"
pass
class b(a):
pass
Printing object of a and b both give same output which proves this. Are __ prefixed methods also inherited than what is their difference from normal methods.