Python - Encapsulation and Data Protection
What will be the output of this code snippet?
class Rectangle:
def __init__(self, width, height):
self._width = width
self._height = height
@property
def area(self):
return self._width * self._height
r = Rectangle(3, 4)
print(r.area)