Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [class]
- #figure
- #private
- lenx
- leny
- #public
- ' in fact properties
- #lenx
- #leny
- [method]
- #Area[]
- Area = lenx * leny
- ' other thingies
- [class]:[#figure]
- #square
- #lenx = 2
- #leny = 2
- print #Area[]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement