1/**
2 * Copyright(C) 2003
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, 2003.
11 * author : Salih Yurttas.
12 *
13 * A01.cs
14 */
15
16
17using System;
18using System.Collections;
19
20public class A01
21{
22 public static void Main(string[] args)
23 {
24 A G = new A();
25
26 int NA1 = G.SA1;
27
28 Console.WriteLine("NA1 = {0}", NA1);
29
30 ArrayList AL1 = G.A1;
31
32 Console.WriteLine("--");
33
34 foreach (int i in AL1)
35 Console.WriteLine("{0}", i);
36 Console.WriteLine();
37
38 AL1[0] = 2;
39
40 G.A1 = AL1;
41
42 Console.WriteLine("--");
43 Console.WriteLine("{0}", G.A1[0]);
44 Console.WriteLine();
45
46 Console.WriteLine("--");
47 Console.WriteLine("{0}", AL1[0]);
48 Console.WriteLine();
49
50 Console.WriteLine("--");
51 foreach (int i in AL1)
52 Console.WriteLine("{0}", i);
53 Console.WriteLine();
54
55 int NA2 = G.SA2;
56
57 Console.WriteLine("NA2 = {0}", NA2);
58
59 string S2 = G.A2;
60
61 Console.WriteLine("--");
62 Console.WriteLine("{0}", S2);
63 Console.WriteLine();
64
65 G.A2 = "ABCD";
66
67 Console.WriteLine("--");
68 Console.WriteLine("{0}", G.A2);
69 Console.WriteLine();
70 }
71}