+ 1

Fill in the blanks to assign the value "7" to the age variable of the object using its setter method.

class Dog def age=(a) @age = a end end bob = Dog.new . age = 7

1st Oct 2020, 8:44 PM
Dennis Crowley
Dennis Crowley - avatar
2 Answers
+ 1
alerady figured it out but thanks
2nd Oct 2020, 12:21 AM
Dennis Crowley
Dennis Crowley - avatar
0
bob.age = 7
2nd Oct 2020, 12:18 AM
Bahha┣
Bahha┣ - avatar