+ 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
2 ответов
+ 1
alerady figured it out but thanks
0
bob.age = 7
class Dog def age=(a) @age = a end end bob = Dog.new . age = 7