示例#1
0
    static void Main(string[] args)
    {
        Base A = new Base(76);

        Console.WriteLine(A);
        A.set(1);
        Console.WriteLine(A);
        SubBase B = new SubBase(8, 'j');

        Console.WriteLine(B);
        B.set(99, '!');
        SubSubBase C = new SubSubBase(100, 'A', "Yo!");

        Console.WriteLine(C);
        C.set(777, '+', "YOYOYOYOYOYO!");
        Console.WriteLine(C);
        Console.ReadKey();
    }
    static void Main(string[] args)
    {
        Base A = new Base('h');

        Console.WriteLine(A.symb);
        SubBase B = new SubBase('H', "Yoshi!");

        Console.WriteLine(B.symb + " " + B.txt);
        SubSubBase C = new SubSubBase('F', "YOYOY", 52);

        Console.WriteLine(C.symb + " " + C.txt + " " + C.num);

        Base A2 = new Base(A);

        Console.WriteLine(A2.symb);
        SubBase B2 = new SubBase(B);

        Console.WriteLine(B2.symb + " " + B2.txt);
        SubSubBase C2 = new SubSubBase(C);

        Console.WriteLine(C2.symb + " " + C2.txt + " " + C2.num);
        Console.ReadKey();
    }
 public SubSubBase(SubSubBase obj)
 {
     this.symb = obj.symb;
     this.txt  = obj.txt;
     this.num  = obj.num;
 }