Ruby - Class Methods and Variables
Find the error in this Ruby code:
class Gadget
VERSION = 1.0
def update_version
VERSION = 2.0
end
endclass Gadget
VERSION = 1.0
def update_version
VERSION = 2.0
end
end15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions