Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public interface Human {
- void Eat();
- void Run();
- }
- public class Man : Human {
- public void Eat() {
- //eat code
- };
- public void Run() {
- //run code
- }
- }
- public class Baby : Human {
- public void Eat() {
- //eat code
- }
- //babies can not run so what??
- //NotImplementedException fired
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement