Practical 3 - Introduction To Object-Oriented Programming (Amended) PDF
Practical 3 - Introduction To Object-Oriented Programming (Amended) PDF
• Balance
Implement methods that will allow objects of the class to perform the following
functions:
All methods should display appropriate messages to the user, such as the new
balance when a deposit or withdrawal is made. None of these methods return any
value.
In addition to the methods listed above, create a constructor which allows someone
to safely create a BankAccount object by supplying an initial balance.
Create a class called TestBankAccount and test all the functionality of the
BankAccount class.
• Length
• Breath
Finally, create a class called TestRectangle that tests all of the methods of the
Rectangle class.