Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ ruby class-inheritance-2.rb
- I am a circle and I will draw myself within the area with width: 300 and height 300
- My radius will be: 1.5 and my center will be: #<Point:0x007fbbd4037e28>
- I am a square and I will draw myself within the area with width: 300 and height 300
- My top left corner is #<Point:0x007fbbd40374a0> and my bottom right corner is #<Point:0x007fbbd4037450>
- I am a triangle and I will draw myself within the area with width: 300 and height 300
- My first point is #<Point:0x007fbbd4036dc0>, my second point is #<Point:0x007fbbd4036cf8> and my third point is #<Point:0x007fbbd4036c58>
- $
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement