Yurttas/PL/OOL/CS/F/04/01/06/AB.cs

 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
15public class AB : IA, IB
16{
17  private int i0;
18
19  private int j0;
20
21  public AB()
22  {
23    i0 = 0;
24    j0 = 0;
25  }
26
27  public int I0
28  {
29    get
30    {
31      return i0;
32    }
33
34    set
35    {
36      i0 = value;
37    }
38  }
39
40  public int J0
41  {
42    get
43    {
44      return j0;
45    }
46
47    set
48    {
49      j0 = value;
50    }
51  }
52
53  public void MA1(int i)
54  {
55    i0 = 2*i;
56  }
57
58  public int MA2()
59  {
60    return i0;
61  }
62
63  public void MB1(int i)
64  {
65    j0 = 4*i;
66  }
67
68  public int MB2()
69  {
70    return j0;
71  }
72}