(continued from previous page main(following is the output of above listingpython contributor py metal radius price gold silver iron gold copper iron metal,radius,price gold, , silver, , iron, , gold, , copper, , iron, , advance inheritance in this section__init__ function of parent class is inherited by the child class alsoa good usage of 'multiple inheritanceand 'class with one methodis shown printing outputs to files in listing the output can be printed on the screen only there we requested the contributorthat it will be better if we can save the output in the files as well to add this featurethe contributor decided to add an __init__ function to add the print functionality it is good approach otherwise we need to add the 'output-filelogic in each format-class below is the code for saving the data in file following are the functionality added to this designoutputs can be saved in the files csvformat gets this ability through inheriting the parent class __init__ textformat override the parent class __init__ to increase/decrease the width alsoit uses 'super()to inherit the parent class __init__ so that the output can be saved in the file listing print data in file and screen contributor py user- additional features will be added to pythonic py by the contributor import sys import csv from abc import abcabstractmethod from pythonic import ring abstract class for table-format class tableformat(object)""abastract class "" print data to file or screen (continues on next page advance inheritance