Yurttas/PL/OOL/Java/F/02/08/E/00/e/E.java

From ZCubes Wiki
Revision as of 13:53, 7 November 2013 by MassBot1 (talk | contribs) (Created page with "<syntaxhighlight lang="java" line start="1" enclose="div">/** * Copyright(C) 1998 * All Rights Reserved. Salih Yurttas, ZCubes, BitsOfCode Software Systems, Inc.. * * P...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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
15package e;
16
17public class E {
18
19  public int e0;
20
21  protected int e1;
22
23  private int e2;
24
25  public E() {
26    e0=2;
27    e1=4;
28    e2=8;
29    System.out.println("E - " + e0 + e1 + e2);
30  }
31
32  public void me() {
33    e0+=2;
34    e1+=4;
35    e2+=8;
36    System.out.println("E.me - " + e0 + e1 + e2);
37  }
38
39}