tonnot
28th June 2011, 13:49
I have a class, in example, Myclass.
I create an instance of it, in example, myclass;
Sometimes I use, by mistake, Myclass.my_property. (uppercase)
Ok, I can compile and run my program, but the value returned are wrong (and can do my program crash ).
Can I solve this ? That is to say, how to avoid the use of classes not instanciated ?
Thanks
Ups, please move to general programming.
I create an instance of it, in example, myclass;
Sometimes I use, by mistake, Myclass.my_property. (uppercase)
Ok, I can compile and run my program, but the value returned are wrong (and can do my program crash ).
Can I solve this ? That is to say, how to avoid the use of classes not instanciated ?
Thanks
Ups, please move to general programming.