oops in python
#encapsulation #protected access modifier class parent : # constructor def __init__ ( self ): self . _a = 9 class child ( parent ): def __init__ ( self ): #calling constructor in above parent . __init__ ( self ) print ( f 'calling 1st one: { self . _a } ' ) self . _a = 7 print ( f 'calling 2nd one: { self . _a } ' ) self . _a = 5 print ( f 'calling 3rd one: { self . _a } ' ) child () # if i use print method it will show object also for example print () print ( child ()) print () #creating object and accessing it ob = parent () ob1 = child () print ( f 'accseing parent class: { ob . _a } ' ) print ( f 'accseing child class: { ob1 . _a } ' ) #it always takes updated value #o/p is: c...