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

 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> o1 = new TA<int>(2);
26
27      Console.WriteLine("o1 -");
28      Console.WriteLine(o1.A0);
29      Console.WriteLine(o1.A1);
30      Console.WriteLine();
31
32      o1.A0 = 4;
33      o1.A1 = 7;
34
35      Console.WriteLine("o1 -");
36      Console.WriteLine(o1.A0);
37      Console.WriteLine(o1.A1);
38
39      TA<int> o2 = new TA<int>(3,
40                               1);
41
42      Console.WriteLine("\no2 -");
43      Console.WriteLine(o2.A0);
44      Console.WriteLine(o2.A1);
45    }
46  }
47
48}