1publicintunique_global_variable=1;// public global variables must be unique within a program
2 3privateintfile_level_global_variable=2;// there can be many private variables with this name in other compile units
4 5publicclassFoo 6{ 7intx; 8chary; 9} 10 11publicFoofoo;// foo will be default-initialized: foo.x = 0 and foo.y = '\0'.
12 13publicFoo*foo_ptr;// foo_ptr will be default-initialized to null pointer.