That is, its members are accessible to all of that class's methods, and can be referred directly.
Below, hour is referred to directly.
// Convert Time to String in standard-time format
public String toString()
{return ( ( hour == 12 || hour == 0 ) ? 12 : hour % 12 ) +
":" + ( minute < 10 ? "0" : "" ) + minute +
":" + ( second < 10 ? "0" : "" ) + second +
( hour < 12 ? " AM" : " PM" );}
t.hour = 7;
g.drawString( " minute = " + t.minute, 25, 25 );