diff options
Diffstat (limited to 'oop/02-inheritance-02-abstract-classes/AccountTest.java')
| -rw-r--r-- | oop/02-inheritance-02-abstract-classes/AccountTest.java | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/oop/02-inheritance-02-abstract-classes/AccountTest.java b/oop/02-inheritance-02-abstract-classes/AccountTest.java new file mode 100644 index 0000000..cc5056b --- /dev/null +++ b/oop/02-inheritance-02-abstract-classes/AccountTest.java @@ -0,0 +1,22 @@ + +public class AccountTest { + + /** + * @param args + */ + public static void main(String[] args) { + SavingsAccount a1 = new SavingsAccount(); + + Account a3 = new SavingsAccount(); + + Account a2 = new CheckingAccount(); + + + + CheckingAccount a4 = new CheckingAccount(); + + +// CheckingAccount a5 = new SavingsAccount(); // not working + } + +} |
