//RemoteServer_018: Make the Class Serializable
public class LastTrans
//RemoteServer_011: Private field for the Newly added class
private int LastDeposit;
private int LastWithdraw;
//RemoteServer_012: Constructor for Last Transactions. At present we will
//Default it to some constant value
//Hard Coded here. In real world make a query to the Database to get
//the latest information.
LastDeposit = 68800;
LastWithdraw = 12000;
//RemoteServer_013: Get the Last Transaction amount
public int GetLastDeposit()
Console.WriteLine("Last deposit Queried...");
public int GetLastWithdraw()
Console.WriteLine("Last Withdrawl amount Queried...");
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)