same local copy in child and parent class in previous sectionwe made local copy of method 'perimeteras '_perimeterin this waywe resolve the problem of overriding the parent class method butif the child class ( box pymakes local copy the perimeter as well with the same name _perimeterthen we will again have the same problemas shown below box py user- creating boxes for the ring from pythonic import ring class box(ring)""modified perimeter for creating the box "" def perimeter(self)override the method 'perimeterperimeter is increased times return ring perimeter(self _perimeter perimeter def main() box(radius= pass radius print("radius:" radiusprint("modified perimeter% perimeter()( *pi*radius if __name__ ='__main__'main(nowwe will have same problem as beforefrom box import box diameter_init( area(wrong value of area again use '__perimeterinstead of '_perimeterto solve the problem the above problem can be solved using double underscore before the perimeter instead of one underscoreas shown belowfirst replace the _perimeter with __ perimeter in the 'pythonic pyas below pythonic py import math import time class ring(object)""here we will see the actual logic behind various pieces of python language instancesvariablesmethod and @property etc alsowe will see the combine usage of these pieces to complete design with agile methodology "" class variables date time strftime("% -% -% "time gmtime()today' date "yyyy-mm-ddcenter center of the ring def __init__(selfdate=datemetal="copper"radius= (continues on next page private attributes are not for privatizing the attributes