// assignment of subtypes

class Main {
	void main() {
		A a1, a2;
		B b1, b2;
		C c;
		a1 = new A();
		b2 = new B();
		c = new C();
		a2 = a1;
		b1 = c;
		
	}
}

class A {}

class B extends A {}

class C extends B {}
