|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
namespace AppFabricDataCache
{
[DataContract]
public class Person
{
[DataMember]
public string FirstName { get; set; }
[DataMember]
public string Lastname { get; set; }
[DataMember]
private decimal Money { get; set; }
public Person(string firstname, string lastname)
{
FirstName = firstname;
Lastname = lastname;
Money = 0;
}
public decimal WithdrawMoney(decimal amount)
{
return Money -= amount;
}
public void DepositMoney(decimal amount)
{
Money += amount;
}
public decimal GetBalance()
{
return Money;
}
public string GetFullName()
{
return string.Format("{0} {1}", FirstName, Lastname);
}
}
}
|
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.
Panagiotis is a Software Development Consultant & Architect and Trainer. He has been a speaker at domestic and international events such TechEd and ITProDevConnections, delivering trainings and consulting on cloud computing and the Windows Azure Platform for almost 3 years. He also has experience with other cloud platforms like AWS, Google Gears and others. He's a supporter of the EuroCloud movement, likes Pizza, Sushi and fast cars. Born and raised in Greece but currently living and working at Belgium for Devoteam BE.
Panagiotis is a Windows Azure MVP.