Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What is yourself method used for?

method Used
0
Posted

What is yourself method used for?

0

Ans. yourself method returns self. It is usually used while cascading messages like add: . | aCollection | aCollection :=3D OrderedCollection new add: 1; add: 2; yourself. In the above example add: returns its argument, not the receiver. Therefore, yourself message is sent to do the proper assignment of an OrderedCollection to aCollection variable.

0

Ans.yourselfmethod returns self. It is usually used while cascading messages like add: .

0

Ans. yourself method returns self. It is usually used while cascading messages like add: . | aCollection | aCollection :=3D OrderedCollection new add: 1; add: 2; yourself. In the above example add: returns its argument, not the receiver. Therefore, yourself message is sent to do the proper assignment of an OrderedCollection to aCollection variable.

0

yourself method returns self. It is usually used while cascading messages like add:.

0

Ans. yourself method returns self. It is usually used while cascading messages like add: .

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123