-
-
Save sixtyfive/2ff5adb30d3d240e29a5a9050bea43e4 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 | |
def initialize | |
respond if respond_to? :respond | |
end | |
end | |
class Child < Parent | |
def respond | |
puts "Yes, mommy!" | |
end | |
end | |
child = Child.new |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment