I am creating a simple console app which I use the Currency format specifier. But I want it to be the sharpest way.
I've done this way:
class Account
{
        public int Number { get; set; }
        public string Holder { get; set; }
        public double Balance { get; protected set; }
        public Account(int number, string holder, double balance)
        {
            Number = number;
            Holder = holder;
            Balance = balance;
        }
}
static void Main(string[] args)
{
       Account acc = new Account(8010, "Bob", 100);
       Console.WriteLine($"{acc.Balance:C}");
}
I want to know if this is the lesser typing and best way of doing it. What do you guys think?
 
    