RectangularSolid code:- class RectangularSolid: def __init__(self,…

Question Answered step-by-step RectangularSolid code:- class RectangularSolid: def __init__(self,… RectangularSolid code:- class RectangularSolid: def __init__(self, length, width, height): self.length = length self.width = width self.height = height def get_volume(self): return self.length * self.width * self.height def get_surface_area(self): return 2 * self.length * self.width + 2 * self.width * self.height + 2 * self.height * self.length Copy your previous class definition for RectangularSolid from the previous problem, including both methods.Provide mutators (setters) and accessors (getters) for each of the three parameters. Use the naming convention for these methods (i.e. do not use the property function or decorators). These methods should allow a program using your code to modify the parameter values after creation and to read individual parameter values.For example:Test r1 = RectangularSolid(3,4,5) print(r1.get_volume()) print(r1.get_surface_area()) r1.set_width(7) print(r1.get_width()) print(r1.get_volume()) print(r1.get_surface_area())Result60 94 7 105 142 Computer Science Engineering & Technology Python Programming COMPUTER S PYTHON Share QuestionEmailCopy link Comments (0)