Yurttas/PL/OOL/CS/F/04/03/02/B.cs

Revision as of 08:07, 7 November 2013 by MassBot1 (talk | contribs) (Created page with "<syntaxhighlight lang="csharp" line start="1" enclose="div">/** * Copyright(C) 2004 * All Rights Reserved. Salih Yurttas, ZCubes, BitsOfCode Software Systems, Inc.. * * ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
 1/**
 2 *  Copyright(C) 2004
 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   : January 1, 2004.
11 *  @author : Salih Yurttas.
12 */
13
14
15public class B : IA
16{
17  private int i1,
18              i2;
19
20  public B()
21  {
22    i1 = 0;
23    i2 = 0;
24  }
25
26  public B(int i)
27  {
28    i1 = i;
29    i2 = i;
30  }
31
32  public B(int i,
33           int j)
34  {
35    i1 = i;
36    i2 = j;
37  }
38
39  public int I1
40  {
41    get
42    {
43      return i1;
44    }
45
46    set
47    {
48      i1 = value;
49    }
50  }
51
52  public int I2
53  {
54    get
55    {
56      return i2;
57    }
58
59    set
60    {
61      i2 = value;
62    }
63  }
64
65  public void PrintAll()
66  {
67    System.Console.WriteLine("i1 = {0}", i1);
68    System.Console.WriteLine("i2 = {0}", i2);
69  }
70}