Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public abstract class Dog
- {
- public abstract void Bark();
- }
- public interface IFeedable
- {
- void Feed();
- }
- public class Doberman : Dog , IFeedable
- {
- //Why override here
- public override void Bark()
- {
- throw new NotImplementedException();
- }
- //and not here?
- public void Feed()
- {
- throw new NotImplementedException();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement