Ruby - Methods
Consider this Ruby code:
What is the output?
class Account
def active?
false
end
def activate!
@active = true
end
end
acc = Account.new
puts acc.active?
acc.activate!
puts acc.active?What is the output?
