Yurttas/PL/OOL/Java/F/04/01/10/03/B.java
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 B implements A {
16
17 protected int i1,
18 i2,
19 i3;
20
21 public B() {
22 i1 = 0;
23 i2 = 0;
24 i3 = 0;
25 }
26
27 public B(final int i) {
28 i1 = i;
29 i2 = i;
30 i3 = i;
31 }
32
33 public B(final int i,
34 final int j,
35 final int k) {
36 i1 = i;
37 i2 = j;
38 i3 = k;
39 }
40
41 public int getI1() {
42 return i1;
43 }
44
45 public int getI2() {
46 return i2;
47 }
48
49 public int getI3() {
50 return i3;
51 }
52
53 public void setI1(final int i) {
54 i1 = i;
55 }
56
57 public void setI2(final int i) {
58 i2 = i;
59 }
60
61 public void setI3(final int i) {
62 i3 = i;
63 }
64
65 public void printAll() {
66 System.out.println("i1 = " + i1);
67 System.out.println("i2 = " + i2);
68 System.out.println("i3 = " + i3);
69 }
70
71}