You could also just put using myClass::number at the top of your source file if you don't want to type myClass::number in the few places where it isn't already automatic.