I'm working on a problem for a school project.
Bascially I have to set a static variable within a class. I have declared the variable as follows:-
I now have to get and set this static variable by using two class methods. The setter has to be declared as private and the getter as public.private static Horse theLeadingHorse;
how do I do this??? I have been racking my brains for hours now but no luck!! it's really starting to do my head in.
Basically the getter class method has to return the variable and the setter class method has to set this horse as the leader (ie. the winner).
Anyone any ideas or suggestions?????
Any help would be greatly appreciated.
thanks in advance