Yurttas/PL/OOL/Java/F/02/04/01/00/IDA00.java

From ZCubes Wiki
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   : September 1, 2004.
11 *  author : Salih Yurttas.
12 */
13
14
15public class IDA00 {
16
17  public static void main(String[] args) {
18    IA o1 = new IA(2);
19
20    System.out.println("o1 -");
21    System.out.println(o1.getA0());
22    System.out.println();
23
24    o1.setA0(4);
25
26    System.out.println("o1 -");
27    System.out.println(o1.getA0());
28    System.out.println();
29
30    DA o2 = new DA(2);
31
32    System.out.println("o2 -");
33    System.out.println(o2.getA0());
34    System.out.println();
35
36    o2.setA0(4);
37
38    System.out.println("o2 -");
39    System.out.println(o2.getA0());
40  }
41
42}