Get Set Functions for variables in a class

In reply to Katri:

In your code everything is fine except that “function bit get_var2()” type is not matched to the set_var2 and declaration of that variable…so take care of types then you can write any number of functions it wont effect.