what are different ways to access class variables