String concatenation with extra variables

Karthikanbarasan
Posted by Karthikanbarasan under C# category on | Points: 40 | Views : 1350
class CurrencyClass
{
public long Dollars;
public byte Cents;

public override string ToString()
{
return "$" + Dollars + "." + Cents;
}
}

Comments or Responses

Login to post response