Difference between revisions of "Yurttas/PL/OOL/CS/F/04/01/06/A06.cs"
Jump to navigation
Jump to search
(Created page with "<syntaxhighlight lang="csharp" line start="1" enclose="div">/** * Copyright(C) 2003 * All Rights Reserved. Salih Yurttas, ZCubes, BitsOfCode Software Systems, Inc.. * * ...") |
(No difference)
|
Latest revision as of 08:06, 7 November 2013
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 A06
16{
17 public static void Main(string[] args)
18 {
19 AB ab0 = new AB();
20
21 System.Console.WriteLine(ab0.MA2());
22 System.Console.WriteLine(ab0.MB2());
23 System.Console.WriteLine();
24
25 ab0.I0 = 2;
26 ab0.J0 = 5;
27
28 System.Console.WriteLine(ab0.MA2());
29 System.Console.WriteLine(ab0.MB2());
30 System.Console.WriteLine();
31
32 ab0.MA1(3);
33 ab0.MB1(1);
34
35 System.Console.WriteLine(ab0.I0);
36 System.Console.WriteLine(ab0.J0);
37 System.Console.WriteLine();
38
39 IA a1 = new AB();
40
41 System.Console.WriteLine(a1.MA2());
42 System.Console.WriteLine();
43
44 a1.I0 = 2;
45
46 System.Console.WriteLine(a1.MA2());
47 System.Console.WriteLine();
48
49 a1.MA1(3);
50
51 System.Console.WriteLine(a1.I0);
52 System.Console.WriteLine();
53
54 a1 = ab0;
55
56 System.Console.WriteLine(a1.I0);
57 System.Console.WriteLine();
58
59 ab0.I0 = 4;
60 a1.I0 = 8;
61
62 System.Console.WriteLine(ab0.I0);
63 System.Console.WriteLine(a1.I0);
64 System.Console.WriteLine();
65
66 IB b1 = new AB();
67
68 System.Console.WriteLine(b1.MB2());
69 System.Console.WriteLine();
70
71 b1.J0 = 8;
72
73 System.Console.WriteLine(b1.MB2());
74 System.Console.WriteLine();
75
76 b1.MB1(3);
77
78 System.Console.WriteLine(b1.J0);
79 System.Console.WriteLine();
80
81 b1 = ab0;
82
83 System.Console.WriteLine(b1.J0);
84 System.Console.WriteLine();
85
86 ab0.J0 = 9;
87 b1.J0 = 1;
88
89 System.Console.WriteLine(ab0.I0);
90 System.Console.WriteLine(b1.J0);
91 System.Console.WriteLine();
92 }
93}