Q&A Discussions
Can i write a function outside an object and associate it with multiple different objects sharing some common property upon which the function operates (turning it to a method for all these objects)? If not , whats the use of defining a method outside the object and assigning it to an object property?
4 Votes
4 AnswersHot today
Ai generated practices
2 Votes
Solving coding challenges
2 Votes
I am new
1 Votes
Advertising in Sololearn
0 Votes
Programming Language
0 Votes
RUST'S FUTURE
1 Votes