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 TA01
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 TA<double> o3 = new TA<double>(2);
47
48 Console.WriteLine("o3 -");
49 Console.WriteLine(o3.A0);
50 Console.WriteLine(o3.A1);
51 Console.WriteLine();
52
53 o3.A0 = 4;
54 o3.A1 = 7;
55
56 Console.WriteLine("o3 -");
57 Console.WriteLine(o3.A0);
58 Console.WriteLine(o3.A1);
59
60 TA<double> o4 = new TA<double>(3,
61 1);
62
63 Console.WriteLine("\no4 -");
64 Console.WriteLine(o4.A0);
65 Console.WriteLine(o4.A1);
66 }
67 }
68
69}