class A
	begin
		int f()
			begin
				return 111;
			end
		int g()
			begin
				return 222;
			end
	end
class B extends A
	begin
		int g()
			begin
				return 333;
			end
	end

int k()
	begin
		return 444;
	end

B b;
^A a = b;
a.h();

^int p;
p.k();
