Yurttas/PL/OOL/Java/F/02/07/01/Comp01.java

From ZCubes Wiki
Jump to navigation Jump to search
 1/**
 2 *  Copyright(C) 2005
 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, 2005.
11 *  @author : Salih Yurttas.
12 */
13
14
15import java.io.*;
16
17import compa.*;
18import compb.*;
19
20public class Comp01 {
21
22  public static void main(String args[])
23    throws IOException
24  {
25    CompA cA = new CompA();
26
27    cA.fOne(2);
28    cA.fTwo(4);
29
30    CompB cB = new CompB();
31
32    cB.fTwo(4);
33    cB.fOne(2);
34  }
35
36}