Back to slide -- Keyboard shortcut: 'u'        next -- Keyboard shortcut: 'n'  Annotated program -- Keyboard shortcut: 't'    csharp-3/object-initialization-simple-1/BankAccount.cs - Class BankAccount - as short as possible.Lecture 5 - slide 10 : 29
Program 1

using System;

public class BankAccount{

  // automatic generation of private instance variables
  // default parameterless constructor

  public string Owner {get; set;}      

  public decimal Balance {get; set;}   

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