Example #1
0
	void Program::Main(Array<String>* args){
		Base* b = new Base();
		Child1* c = new Child1();
		Child2* c2 = new Child2();
		Base* b2 = c;
		Base* b3 = c2;
		b->Virtual();
		b->NonVirtual();
		b2->Virtual();
		b2->NonVirtual();
		b3->Virtual();
		b3->NonVirtual();
		c->Virtual();
		c->NonVirtual();
		c2->Virtual();
		c2->NonVirtual();
	}