12 lines
No EOL
278 B
Python
12 lines
No EOL
278 B
Python
class Shape:
|
|
def area():
|
|
pass
|
|
|
|
class Rectangle(Shape):
|
|
def __init__(self, width: int, height: int) -> None:
|
|
super().__init__()
|
|
self.width = width
|
|
self.height = height
|
|
|
|
def area(self) -> int:
|
|
return self.width * self.height |