How can you reference static variables | Eklavya Online

How can you reference static variables

Via reference to any instance of the class

Code:

Computer comp = new Computer ();

comp.harddisk where hardisk is a static variable

comp.compute() where compute is a method