-
-
Save enebo/460bae3b78c01aee9156334a46fde7d6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Parent < java.lang.Object | |
def toString | |
"parent " + super | |
end | |
end | |
class Child < Parent | |
def test | |
"child " + toString | |
end | |
end | |
p Child.new.test |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment