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 i4;
22
23 public D() {
24 i1 = 0;
25 i2 = 0;
26 i3 = 0;
27 i4 = 0;
28 }
29
30 public D(int i) {
31 i1 = i;
32 i2 = i;
33 i3 = i;
34 i4 = i;
35 }
36
37 public D(int i,
38 int j,
39 int k,
40 int l) {
41 i1 = i;
42 i2 = j;
43 i3 = k;
44 i4 = l;
45 }
46
47 public int I4 {
48 get {
49 return i4;
50 }
51 set {
52 i4 = value;
53 }
54 }
55
56 public void PrintAll() {
57 System.Console.WriteLine("i1 = {0}", i1);
58 System.Console.WriteLine("i2 = {0}", i2);
59 System.Console.WriteLine("i3 = {0}", i3);
60 System.Console.WriteLine("i4 = {0}", i4);
61 }
62
63 public void PrintAll(string s) {
64 System.Console.WriteLine(s);
65 System.Console.WriteLine("i1 = {0}", i1);
66 System.Console.WriteLine("i2 = {0}", i2);
67 System.Console.WriteLine("i3 = {0}", i3);
68 System.Console.WriteLine("i4 = {0}", i4);
69 }
70
71}