Created
May 19, 2016 17:47
-
-
Save anonymous/1d1d77eab8bd601a4005285f1d8bfc77 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 superclass | |
@tminutes = 60 | |
def initalize | |
# do nothing | |
end | |
end | |
class subclass | |
def getminutes | |
@tminutes | |
end | |
end | |
sc = subclass.new() | |
puts sc.getminutes #this will fail |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment