That only works for generic data ... You are probably better off passinginformation to class C2 from c1 instead of making a second instance of c1