Back to notes -- Keyboard shortcut: 'u'        next -- Keyboard shortcut: 'n'  Slide program -- Keyboard shortcut: 't'    A class Person.Lecture 12 - slide 27 : 36
Program 1
using System;

public class Person{

  private string name;
  private DateTime? dateOfBirth;

  public Person (string name){
    this.name = name;
    this.dateOfBirth = null;
  }

  public Person (string name, DateTime? dateOfBirth){
    this.name = name;
    this.dateOfBirth = dateOfBirth;
  }

  public string Name{
    get {return name;}
  }

  public DateTime? DateOfBirth{
    get {return dateOfBirth;}
  }


  public override string ToString(){
    return "Person: " + name + " " + dateOfBirth;
  }

}