human
Riscrivi il codice seguente in uno stile orientato agli oggetti.def calculate_area(length, width):
  return length * width
gpt
# Define a class to calculate the area of a rectangle
class RectangleAreaCalculator: 
    # Define a method to calculate the area 
    def calculate_area(self, length, width): 
        return length * width 
  
# Test
if __name__ == "__main__":
    RAC = RectangleAreaCalculator()
    print(RAC.calculate_area(2, 4))