void m1() { int i1; Color c1; Test2 t2; Test3 t3; Test4 t4; Object o1; J j1; Object[] ao1; // Need a type to create objects. i1 = new Color.Red(); // Cannot instantiate interfaces or abstract classes. j1 = new J(); t3 = new Test3(); // The type must be a class or value type. ao1 = new Object[] (); // Inaccessible constructor. t4 = new Test4(); // No candidates. t2 = new Test2(0.1); }
public FirstParrot() { Ifly = new Fly.FastFly(); Icolor = new Color.Red(); Italk = new Talk.LoudTalk(); }
Color.Blue => new MiniMaxColor(Color.Red, _maximizingColor),