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 * A02.cs
14 */
15
16
17using System;
18
19public class A02
20{
21 public static void Main(string[] args)
22 {
23 A G = new A();
24
25 Console.WriteLine("after default construction A() /");
26 G.Output();
27
28 Console.WriteLine("G.A1 and G.A2 values /");
29 Console.WriteLine("A0 = {0}", G.A0);
30 Console.WriteLine("A1 = {0}", G.A1);
31 Console.WriteLine("A2 = {0}", G.A2);
32 Console.WriteLine();
33
34 G.A1 = 16;
35 G.A2 = 64;
36
37 Console.WriteLine("after G.A1=16, G.A2=64 /");
38 G.Output();
39
40 A G1 = new A(2);
41
42 Console.WriteLine("after construction A(2) /");
43 G1.Output();
44
45 A G2 = new A(2, 3);
46
47 Console.WriteLine("after construction A(2,3) /");
48 G2.Output();
49
50 A G3 = new A(2048, 5, 6);
51
52 Console.WriteLine("after construction A(2048,5,6) /");
53 G3.Output();
54 }
55}