Update of /cvsroot/ordweb/uop/pos407/poulh/week3 In directory sc8-pr-cvs1:/tmp/cvs-serv30667/pos407/poulh/week3 Added Files: .nbattrs Account.class Account.java Checking.class Checking.java Savings.class Savings.java driver.class driver.java Log Message: init --- NEW FILE: .nbattrs --- <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE attributes PUBLIC "-//NetBeans//DTD DefaultAttributes 1.0//EN" "http://www.netbeans.org/dtds/attributes-1_0.dtd"> <attributes version="1.0"> <fileobject name="Account.java"> <attr name="EA-OpenIDE-Connection" serialvalue="aced0005737200146a6176612e7574696c2e4c696e6b65644c6973740c29535d4a60882203000078707704000000017372002a6f72672e6f70656e6964652e6c6f61646572732e436f6e6e656374696f6e537570706f72742450616972055f8af6f04a3bd80200024c00047479706574002b4c6f72672f6f70656e6964652f636f6f6b6965732f436f6e6e656374696f6e436f6f6b696524547970653b4c000576616c75657400124c6a6176612f6c616e672f4f626a6563743b78707372002e6f72672e6e65746265616e732e6d6f64756c65732e6a6176612e4a617661436f6e6e656374696f6e732454797065a83dd01001306d7402000149000666696c746572787000000050737200436f72672e6e65746265616e732e6d6f64756c65732e6a6176612e4a617661446174614f626a6563742450657273697374656e74436f6e6e656374696f6e48616e646c65ba16f1d2dd4c1cb60200014c000e646174614e6f646548616e646c6574001f4c6f72672f6f70656e6964652f6e6f6465732f4e6f64652448616e646c653b7870737200296f72672e6f70656e6964652e6c6f61646572732e446174614e6f6465244f626a65637448616e646c655bd0f82e01811d2e0200025a0005636c6f6e654c00036f626a7400244c6f72672f6f70656e6964652f66696c6573797374656d732f46696c654f626a6563743b787000737200326f72672e6f70656e6964652e66696c6573797374656d732e416273747261637446696c654f626a656374245265706c616365896fa1bce4b5219f0200024c000866696c654e616d657400124c6a6176612f6c616e672f537472696e673b4c000666734e616d6571007e000f787074000c536176696e67732e6a617661740046433a2f446f63756d656e747320616e642053657474696e67732f762d706f686f65632f4d7920446f63756d656e74732f756f702f706f733430372f706f756c682f7765656b3378"/> </fileobject> </attributes> --- NEW FILE: Account.class --- (This appears to be a binary file; contents omitted.) --- NEW FILE: Account.java --- /** * * @author bmeier */ public abstract class Account { private int actNum; private double actBal; /** Creates a new instance of Account */ public Account(int num) { actNum = num; actBal = 0.0; } public void SetBalance(double bal) { actBal = bal; } public abstract void getActBal(); public abstract void getActNum(); } --- NEW FILE: Checking.class --- (This appears to be a binary file; contents omitted.) --- NEW FILE: Checking.java --- /** * * @author bmeier */ public class Checking extends Account { /** Creates a new instance of Checking */ public Checking(int num) { super(num); } public void getActBal() { System.out.println((double)345.23); } public void getActNum() { System.out.println((int)555); } } --- NEW FILE: Savings.class --- (This appears to be a binary file; contents omitted.) --- NEW FILE: Savings.java --- /** * * @author bmeier */ public class Savings extends Account { private double interest; /** Creates a new instance of Savings */ public Savings(int args) { super(args); } public void getActBal() { } public void getActNum() { } } --- NEW FILE: driver.class --- (This appears to be a binary file; contents omitted.) --- NEW FILE: driver.java --- /* * driver.java * * Created on July 10, 2003, 8:45 PM */ /** * * @author v-pohoec */ public class driver { public static void main(String[] args) throws Exception { try{ Checking chk = new Checking(100); chk.SetBalance(200.00); Savings sav = new Savings(100); System.out.println("OK"); } catch(Exception ex) { System.out.println("BAD"); } } } |