예제 #1
0
 public virtual void IAmPrinting(Transport t)
 {
     Console.WriteLine(t.GetType());
     Console.WriteLine(t.ToString());
 }
예제 #2
0
 public void IAmPrinting(Transport p)
 {
     Console.WriteLine("Type: " + p.GetType());
     Console.WriteLine(p.ToString());
 }