Example #1
0
        static void Main(string[] args)
        {
            //NewMethod1();
            //NewMethod();
            PointC pc = new PointC(41);

            Write(pc.Y + "\t" + pc.GetX());
            PointS ps = new PointS();

            ps.X = 20;
        }
Example #2
0
        private static void NewMethod()
        {
            PointC pc = new PointC();

            WriteLine(pc.Y);
            pc.Y = 12;
            PointS ps = new PointS();

            WriteLine(ps.X);
            ps.X = 20;
        }
Example #3
0
        public override bool Equals(Object o)
        {
            if (o is PointC)
            {
                PointC pc = o as PointC;
                if (pc.ToString() == ToString())
                {
                    //if (X == pc.X && Y == pc.Y)

                    return(true);
                }
            }
            return(false);
        }
Example #4
0
        static void Main(string[] args)
        {
            //NewMethod1();
            //NewMethod();
            PointC pc = new PointC(41);

            Write(pc.Y + "\t" + pc.GetX());
            PointS ps = new PointS();

            ps.X = 20;
            PointC pc5 = new PointC();
            PointC pc6 = new PointC(17, 19, "MyPaint", ConsoleColor.Green);

            WriteLine(pc5.X + "\t" + pc5.Y + "\t" + pc5.Name + "\t" + pc5.Color);
            WriteLine(pc6.X + "\t" + pc6.Y + "\t" + pc6.Name + "\t" + pc6.Color);
        }
Example #5
0
 static void TestClass(PointC pc)
 {
     pc.X = 25;
 }
Example #6
0
 public PointS1(int a)
 {
     x  = a;
     y  = default(int);
     pc = new PointC(8, 9);
 }
Example #7
0
 private PointS1(int a)
 {
     x  = a;
     y  = default(int);
     pc = new PointC(18, 19);
 }