Yurttas/PL/OOL/CS/F/04/03/01/D.cs

Revision as of 08:06, 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 D : IB,
16                 IC {
17
18  private int i1,
19              i2,
20              i3;
21
22  public D() {
23    i1 = 0;
24    i2 = 0;
25    i3 = 0;
26  }
27
28  public D(int i) {
29    i1 = i;
30    i2 = i;
31    i3 = i;
32  }
33
34  public D(int i,
35           int j,
36           int k) {
37    i1 = i;
38    i2 = j;
39    i3 = k;
40  }
41
42  public int I1 {
43    get {
44      return i1;
45    }
46    set {
47      i1 = value;
48    }
49  }
50
51  public int I2 {
52    get {
53      return i2;
54    }
55    set {
56      i2 = value;
57    }
58  }
59
60  public int I3 {
61    get {
62      return i3;
63    }
64    set {
65      i3 = value;
66    }
67  }
68
69  public void PrintAll() {
70    System.Console.WriteLine("i1 = {0}", i1);
71    System.Console.WriteLine("i2 = {0}", i2);
72    System.Console.WriteLine("i3 = {0}", i3);
73  }
74
75}