Hello,
For example, if I had:
public class Fu { int _bar; public Fu(){ _bar = 12; } public void Square(){ _bar *= _bar; } }
(This is an example, by the way, I know that this is the worst way to do what I do.)
Anyway, I can go:
Fu _fu = new Fu(); _fu.Square(); Console.WriteLine(_fu);
and _fu returns 144 instead of the class Fu? Or is this just a funny question?
Regards, Harold
Edit: Console.WriteLine(_fu); was a bad example. What if I wanted to do int twelveCubed = 12 * _fu ?
source share