W
Will Dresh
Hello,
I think this problem will be best explained by simply showing you the
code first..
I would, of course, expect this to result in two prints to stdout:
"initializing Dog" and "initializing ConfigSettings". However, when I
run this program, "initializing ConfigSettings" is never output.
What in the world is going on?
I think this problem will be best explained by simply showing you the
code first..
Code:
class ConfigSettings
def initiliaze
puts 'initializing ConfigSettings'
end
end
class Dog
def initialize
puts 'initiliazing Dog'
end
end
dog = Dog.new
settings = ConfigSettings.new
"initializing Dog" and "initializing ConfigSettings". However, when I
run this program, "initializing ConfigSettings" is never output.
What in the world is going on?