(continued from previous page #access to private attribute is not allowed #uncomment following line to see error print("jungle guide rating " __jungleguiderating #private attribute can still be accessed as below#objectname _classname __attributename print ("guide rating " _ratejungle__jungleguideratingguide rating standard boilerplate to set 'mainas starting function if __name__=='__main__'main(class attribute class attribute is the variable of the class (not of methodas shown in line of listing this attribute can be available to all the classes without any inheritance at line the class test (line is using the class-attribute 'sum_of_feedbackof class jungle (line note thatwe need to use the class name to access the class attribute jungle sum_of_feedback (lines and listing class attributes and it' access #junglebook py #class declaration class jungleclass attribute use __sum_of_feedback to hide it from the child class sum_of_feedback #constructor with default values def __init__(selfname="unknown")self _visitorname name please do not access directly def welcomemessage(self)print("hello % welcome to the jungleself visitorname def averagefeedback(self)#average feedback is hided for the the child class self __avg_feedback jungle sum_of_feedback/ratejungle total_num_feedback print("average feedback "self __avg_feedback class ratejungle(jungle)class attribute total_num_feedback def __init__(selfnamefeedback)feedback ( - is the best self feedback feedback public attribute add new feedback value to sum_of_feedback jungle sum_of_feedback +self feedback increase total number of feedback by ratejungle total_num_feedback + inheriting the constructor of the class super(__init__(name using parent class attribute visitorname (continues on next page object oriented programming