Back to slide -- Keyboard shortcut: 'u'        next -- Keyboard shortcut: 'n'          bank-account/bank-account-properties/funny-bank-account.cs - A BankAccount class with a funny Balance property.Lecture 0 - slide 22 : 25
Program 1

using System;

public class BankAccount {

   private string owner;
   private decimal balance;

   public BankAccount(string owner, decimal balance) {
      this.owner = owner; 
      this.balance = balance;
   }

   public decimal Balance {
     get {return balance * 2;} 
     set {balance = value - 50;}
   }   

   public override string ToString() {
      return owner + "'s account holds " +
            + balance + " kroner";
   }
}