V
valentin tihomirov
// define two types
class Type1 {}
class Type2 {}
// define a third type which variables are of type1 or type2
enumeration AlternativeType {Type1, Type2}
// assign
AlternativeType var1 = new Type1();
AlternativeType var2 = new Type2();
class Type1 {}
class Type2 {}
// define a third type which variables are of type1 or type2
enumeration AlternativeType {Type1, Type2}
// assign
AlternativeType var1 = new Type1();
AlternativeType var2 = new Type2();