Yurttas/PL/OOL/CS/F/04/03/02/D.cs
Jump to navigation
Jump to search
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 : B,
16 IC
17{
18 private int i1,
19 i2,
20 i3;
21
22 public D()
23 {
24 i1 = 0;
25 i2 = 0;
26 i3 = 0;
27 }
28
29 public D(int i)
30 {
31 i1 = i;
32 i2 = i;
33 i3 = i;
34 }
35
36 public D(int i,
37 int j,
38 int k)
39 {
40 i1 = i;
41 i2 = j;
42 i3 = k;
43 }
44
45 public int I1
46 {
47 get
48 {
49 return i1;
50 }
51
52 set
53 {
54 i1 = value;
55 }
56 }
57
58 public int I2
59 {
60 get
61 {
62 return i2;
63 }
64
65 set
66 {
67 i2 = value;
68 }
69 }
70
71 public int I3
72 {
73 get
74 {
75 return i3;
76 }
77
78 set
79 {
80 i3 = value;
81 }
82 }
83
84 public void PrintAll()
85 {
86 System.Console.WriteLine("i1 = {0}", i1);
87 System.Console.WriteLine("i2 = {0}", i2);
88 System.Console.WriteLine("i3 = {0}", i3);
89 }
90}