- 1
Anyone?
help
6 Antworten
+ 5
I think the question is missing ... can you tell us what you need ?
+ 4
A method is like a function but that modify the object it is called with.
Lets say we have a RED car in a variable c. If we do :
c.setColor(BLUE);
The car in c become blue. If we do :
Car c2(RED);
c2.setColor(GREEN);
c getColor();
The last line returns BLUE as we set the green color on another car, not on the first one
0
I don't understand methods in c#
0
teach me methods in c#. its somehow complicated. I mean methods in general
0
@baptiste. thanks a lot!!!!. can you be my friend?