Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Jul 18th, 2018
62
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.14 KB
| None
|
0
0
raw
download
clone
embed
print
report
class A
def f
puts "F"
z
end
private
def z
puts "z"
end
end
class B < A
def g
puts "g"
z
end
end
a=A.new
b=B.new
a.f
b.g
b.f
b.z
Add Comment
Please,
Sign In
to add comment
Public Pastes
Mad
PHP | 8 min ago | 0.01 KB
link input and label
HTML 5 | 11 min ago | 0.21 KB
python
Python | 14 min ago | 20.39 KB
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 🤑
GetText | 15 min ago | 0.39 KB
Untitled
C++ | 39 min ago | 1.12 KB
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 🤑
GetText | 42 min ago | 0.38 KB
СПРИНТ № 7 | Модель памяти в C++ | Урок 9: Ко...
C++ | 46 min ago | 11.32 KB
sgoz
Oracle 11 | 48 min ago | 5.18 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!