Ruby - Methods
Identify the error in this Ruby method definition:
What is wrong with this method name?
def save? # saves the object puts "Saving..." true end
What is wrong with this method name?
def save? # saves the object puts "Saving..." true end
? suffix? should return true or false and not perform side effects like saving.?.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions