상속: Dog
예제 #1
0
 public void SubclassesCanInvokeParentBehaviorUsingBase()
 {
     var ralph = new BullDog("Ralph");
     Assert.Equal("WOOF, GROWL", ralph.Bark());
 }
예제 #2
0
 public void YouCanCallBaseEvenFromOtherMethods()
 {
     var george = new BullDog("George");
     Assert.Equal(FILL_ME_IN, george.Bark());
 }
 public void YouCanCallBaseEvenFromOtherMethods()
 {
     var george = new BullDog ("George");
     Assert.AreEqual ("WOOF, GROWL", george.Bark ());
 }
예제 #4
0
 public void SubclassesCanInvokeParentBehaviorUsingBase()
 {
     var ralph = new BullDog("Ralph");
     Assert.Equal(FILL_ME_IN, ralph.Bark());
 }
 public void YouCanCallBaseEvenFromOtherMethods()
 {
     var george = new BullDog ("George");
     Assert.AreEqual ((new GreatDane("George")).Growl(), george.Bark ());
 }