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 withConsole 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
14
15public class A05
16{
17 public static void Main(string[] args)
18 {
19 A a0 = new A();
20
21 System.Console.WriteLine(a0.MA2());
22
23 a0.I0 = 2;
24
25 System.Console.WriteLine(a0.MA2());
26
27 a0.MA1(3);
28
29 System.Console.WriteLine(a0.I0);
30
31 IA a1 = new A();
32
33 System.Console.WriteLine(a1.MA2());
34
35 a1.I0 = 2;
36
37 System.Console.WriteLine(a1.MA2());
38
39 a1.MA1(3);
40
41 System.Console.WriteLine(a1.I0);
42
43 a1 = a0;
44
45 System.Console.WriteLine(a1.I0);
46
47 a0.I0 = 4;
48 a1.I0 = 8;
49
50 System.Console.WriteLine(a0.I0);
51 System.Console.WriteLine(a1.I0);
52 }
53}