Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Jun 20th, 2018
94
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.21 KB
| None
|
0
0
raw
download
clone
embed
print
report
class Animal
end
class Person < Animal
def speak
put "hello"
end
def legs
return 2
end
end
class Dog < Animal
def speak
print "woof"
end
end
rob = Person.new
rob.speak
Add Comment
Please,
Sign In
to add comment
Public Pastes
GPS Display rev_03
Arduino | 1 min ago | 2.52 KB
GPS Tracker rev_02
Arduino | 4 min ago | 2.28 KB
Untitled
HTML | 8 min ago | 1.65 KB
Untitled
C++ | 10 min ago | 0.66 KB
GPS Display rev_01
Arduino | 10 min ago | 2.28 KB
Untitled
C++ | 24 min ago | 0.42 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🤑
GetText | 28 min ago | 0.39 KB
azure mod lite pre config
Lua | 52 min ago | 26.75 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!