0% found this document useful (0 votes)
5 views12 pages

CSC1016S - 2023 - Test 2

The document contains code snippets related to bank account objects in a programming context. It shows the creation of various account types, including SavingsAccount and BankAccount. Additionally, there is a mention of defining constants, though no specific constants are provided.

Uploaded by

ayathokoza08
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views12 pages

CSC1016S - 2023 - Test 2

The document contains code snippets related to bank account objects in a programming context. It shows the creation of various account types, including SavingsAccount and BankAccount. Additionally, there is a mention of defining constants, though no specific constants are provided.

Uploaded by

ayathokoza08
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 12

BankAccount a = new SavingsAccount();

BankAccount a = new Integer(1);

BankAccount a = new BankAccount();

SavingsAccounts a = new BankAccount();

Defining constants.

You might also like