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
14
15using System;
16
17public sealed class A
18{
19 private int i1;
20 private int i2;
21
22 public A()
23 {
24 i1 = 2;
25 i2 = 4;
26 }
27
28 public A(int i1,
29 int i2)
30 {
31 this.i1 = i1;
32 this.i2 = i2;
33 }
34
35 public int I1
36 {
37 get
38 {
39 return i1;
40 }
41
42 set
43 {
44 i1 = value;
45 }
46 }
47
48 public int I2
49 {
50 get
51 {
52 return i2;
53 }
54
55 set
56 {
57 i2 = value;
58 }
59 }
60
61 public void MA1(int i)
62 {
63 i1 += i;
64 i2 -= i;
65 }
66
67 public void Output()
68 {
69 Console.WriteLine();
70
71 Console.WriteLine(i1);
72 Console.WriteLine(i2);
73
74 Console.WriteLine();
75 }
76}