Yurttas/PL/OOL/Java/F/02/08/D/01/D.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 D {
16
17  public int d0;
18
19  protected int d1;
20
21  private int d2;
22
23  public D() {
24    d0=2;
25    d1=4;
26    d2=8;
27    System.out.println("D - " + d0 + d1 + d2);
28  }
29
30  public void md() {
31    d0+=2;
32    d1+=4;
33    d2+=8;
34    System.out.println("D.md - " + d0 + d1 + d2);
35  }
36
37}