Python - Object-Oriented Programming Foundations
You have this procedural code:
Which class design correctly encapsulates this behavior in an object-oriented style?
def perimeter(length, width):
return 2 * (length + width)
print(perimeter(4, 7))Which class design correctly encapsulates this behavior in an object-oriented style?
