//创建一个类
class Test
{
public int i;
public char c;
}
public class work
{
public static void main(String[] args)
{
//产生一个实例化对象
Test tst = new Test();
//输出的时候,调用类的属性,通过对象来调用
System.out.println(tst.i);
System.out.println(tst.c);
}
}
输出结果——0