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