package day05;
class Tv {
boolean power = false;
int vol = 0, ch = 1;
}
public class Test52 {
int abc = 123;
public static void main(String[] args) {
Test52 test = new Test52();
System.out.println(test.abc);
Tv t = new Tv();
System.out.println(t.power);
System.out.println(t.vol);
System.out.println(t.ch);
Tv t1 = new Tv();
Tv t2 = new Tv();
Tv t3 = new Tv();
System.out.println(t1);
System.out.println(t2);
System.out.println(t3);
System.out.println("==========================");
t1.ch = 10;
t2.ch = 20;
System.out.println(t1.ch);
System.out.println(t2.ch);
t1 = t2;
t2 = t1;
t1.ch = t2.ch;
t2.power = t3.power;
}
}