Yurttas/PL/OOL/CS/F/06/00/02/TA00.cs

From ZCubes Wiki
Jump to navigation Jump to search
 1/**
 2 *  Copyright(C) 2004
 3 *  All Rights Reserved. Salih Yurttas, ZCubes, BitsOfCode Software Systems, Inc..
 4 *
 5 *  Permission to use, copy, modify, and distribute this
 6 *  software and its documentation for EDUCATIONAL purposes
 7 *  and without fee is hereby granted provided that this
 8 *  copyright notice appears in all copies.
 9 *
10 *  @date   : September 1, 2004
11 *  @author : Salih Yurttas
12 *
13 */
14
15
16using System;
17
18namespace ID
19{
20
21  public class TA00
22  {
23    public static void Main(string[] args)
24    {
25      TA<int,
26         int> o1 = new TA<int,
27                          int>(2,
28                               2);
29
30      Console.WriteLine("o1 -");
31      Console.WriteLine(o1.A0);
32      Console.WriteLine(o1.A1);
33      Console.WriteLine();
34
35      o1.A0 = 4;
36      o1.A1 = 7;
37
38      Console.WriteLine("o1 -");
39      Console.WriteLine(o1.A0);
40      Console.WriteLine(o1.A1);
41
42      TA<int,
43         int> o2 = new TA<int,
44                          int>(3,
45                               1);
46
47      Console.WriteLine("\no2 -");
48      Console.WriteLine(o2.A0);
49      Console.WriteLine(o2.A1);
50    }
51  }
52
53}