static void Main(string[] args) { MyShapes.Square s = new MyShapes.Square(); TheSquare s2 = new TheSquare(); bfHome.BinaryFormatter bf = new bfHome.BinaryFormatter(); Rectangle r = new Rectangle(); }
public static void Main (string[] args) { My3DShapes.Hexagon h = new My3DShapes.Hexagon(); My3DShapes.Square s = new My3DShapes.Square(); My3DShapes.Circle c = new My3DShapes.Circle(); MyShape h2 = new MyShape(); // B bu şekilde de tanımlanabilir bfHome.BinaryFormatter b = new bfHome.BinaryFormatter(); }
static void Main(string[] args) { // Circle c1 = new Circle(); // <-- name clash // Hexagon h1 = new Hexagon(); // <-- name clash // Square s1 = new Square(); // <-- name clash My3DShapes.Circle c = new My3DShapes.Circle(); // OK My3DShapes.Hexagon c = new My3DShapes.Hexagon(); // OK My3DShapes.Square c = new My3DShapes.Square(); // OK }
static void Main(string[] args) { RegularShape.Hexagon hex = new RegularShape.Hexagon(); RegularShape.Circle Cir = new RegularShape.Circle(); RegularShape.Square squ = new RegularShape.Square(); ThreeDemensional.Hexagon hex2 = new ThreeDemensional.Hexagon(); ThreeDemensional.Circle cir2 = new ThreeDemensional.Circle(); ThreeDemensional.Square squ2 = new ThreeDemensional.Square(); }