Advertisement
Guest User

Untitled

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