Ejemplo n.º 1
0
 // A public "method" can be called from outside the class and can access either public or private properties and methods
 // This method accepts a "parameter" of type "Bike" and adds it to the private Inventory dictionary
 public void AddBike(Bike aBike)
 {
     Inventory.Add(aBike.Name, aBike);
 }