Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class TwoDim():
- def __init__(length, width):
- self.length = length
- self.width = width
- self.square = self.length * self.width
- class ThreeDim(TwoDim):
- def __init__(height):
- self.height = height
- self.volume = self.square * self.height
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement