K
K Viltersten
Normally, when one prints out an object,
ToString() is called and it contains the name
of the class that the object is of.
Now, i'd like to override it, so that instead
of it returning
"ThatCoolClass"
it will return
"An instance of ThatCoolClass class"
but i don't know how to obtain the name...
ToString() is called and it contains the name
of the class that the object is of.
Now, i'd like to override it, so that instead
of it returning
"ThatCoolClass"
it will return
"An instance of ThatCoolClass class"
but i don't know how to obtain the name...