Yurttas/PL/OOL/Java/F/02/06/00/A00.java

From ZCubes Wiki
Jump to navigation Jump to search
 1/**
 2 *  Copyright(C) 1998
 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, 1998.
11 *  @author : Salih Yurttas.
12 */
13
14
15public class A00 implements A {
16
17  private int i0;
18
19  public A00() {
20    i0=2;
21  }
22
23  public void m1(int i) {
24    i0 = i;
25  }
26
27  public void m2(int i) {}
28
29  public void m3(int i) {}
30
31  public void m4(int i) {}
32
33  public static void main(String[] args) {
34
35    A00 a00 = new A00();
36
37    System.out.println(a00.i0);
38
39    a00.m1(4);
40    System.out.println(a00.i0);
41
42  }
43
44}