Advertisement
Guest User

Untitled

a guest
Mar 27th, 2013
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.49 KB | None | 0 0
  1.       public abstract class Dog
  2.       {
  3.          public abstract void Bark();
  4.       }
  5.  
  6.       public interface IFeedable
  7.       {
  8.          void Feed();
  9.       }
  10.  
  11.       public class Doberman : Dog , IFeedable
  12.       {
  13.          //Why override here
  14.          public override void Bark()
  15.          {
  16.             throw new NotImplementedException();
  17.          }
  18.  
  19.          //and not here?
  20.          public void Feed()
  21.          {
  22.             throw new NotImplementedException();
  23.          }
  24.       }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement