Question: General Instructions This simple practical task is the start of the series of exercises in which you will develop a small banking system applying all

General Instructions This simple practical task
General Instructions This simple practical task is the start of the series of exercises in which you will develop a small banking system applying all important OOP concepts. Your first task is to complete theAccount class, one of the core classes of the future program. You will need to focus on the use of classes and objects and the ability to capture knowledge and behaviour within objects. The banking system you are developing must have an account, which allows to withdraw and deposit money. In addition, it must be capable to print its balance and other details to the terminal. There are two auxiliary instance variables to support this functionality and capture the state of an object of theAccount class: _balance of decimal data type, - _name of string data type. The following methods of the class must be made accessible to the user: - Account( String name, decimal balance ) Constructor. Initializes a new instance of the Account class and sets its initial_balance and _ name attributes to the respective values given in the input. - void Deposit[ decimal amount ) Adds funds to the account increasing the _ balance by the specified amount. - void Withdraw( decimal amount ] Withdraws funds from the account decreasing the_ balance by the specified amount. - void Print( ] Prints the contents of _balance and _name of the account to the terminal. - String Name Property. Gets the _name of the account. The following UML diagram should help you to understand the design of theAccount class. Account im balances decim TestAccount _name: Sting -Account name: String balance: deciral . Deposit amount -Weekon( amount dro Create a new Of Console Application project and write your code for the Account class. Rename the default Program class to TestAccount and write a test driver to examine the public methods of the Account class. Test your program and make sure that an object of the Account class behaves as expected. Prepare to explain the following to your tutor: - How classes are used to define objects. - How methods, fields (attributes), and properties all work together when you create a class. - How fields give knowledge to each object created from a class. - How methods give capabilities to each object created from a class. 1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!