Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C# Programming QUESTION 4: mCash , one of the fastest-growing provider of mobile financial services in UK, wants to develop a C# application which will

C# Programming QUESTION 4:

mCash, one of the fastest-growing provider of mobile financial services in UK, wants to develop a C# application which will contain several classes. Among them, your responsibility is to create the basic Account class with the specifications below:

Fields

//According to your understanding

Properties

McashId

//should be a read-only property

McashNumber

//should be a read-only property

OwnerName

//should be a read-only property

Balance

Constructor

Account (mkashNumber, ownerName)

//initializes all the member variables

//mcashId is auto-genarated

(format: [current_year].[month].[count])

(example: 2016.06.1, 2016.06.2, etc.)

//balance should be initialized to zero

Methods

CashIn(amount)

//adds a valid amount to the balance

CashOut(amount)

//subtracts a valid amount from the balance

SendMoney(toAccount, amount)

//a valid amount is deposited to valid toAccount

GetBalance()

//returns balance of an account

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions