Yurttas/PL/OOL/CS/F/02/05/02/00/A.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
15
16using System;
17
18namespace A
19{
20
21  public class A
22  {
23    private int i0;
24
25    private int i1;
26
27    public A()
28    {
29      i0 = 0;
30      i1 = 2;
31    }
32
33    public int I0
34    {
35      get
36      {
37        return i0;
38      }
39      set
40      {
41        i0 = value;
42      }
43    }
44
45    public int I1
46    {
47      get
48      {
49        return i1;
50      }
51      set
52      {
53        i1 = value;
54      }
55    }
56
57    public void PrintA()
58    {
59      Console.WriteLine("A /");
60
61      Console.WriteLine("i0 = {0}", i0);
62      Console.WriteLine("i1 = {0}", i1);
63
64      Console.WriteLine();
65    }
66  }
67
68}