class A():
  def sum1(self,a,b):
    print ("In class A"
)
    c = a+b
    return c
    
class B(A):
  def sum1(self,a,b):
    print( "In class B")
    c= a*a+b*b
    return c
    
b_obj = B()
print (B.__dict__
)
print (b_obj.sum1(2,5))
