Advertisement
Fhernd

WhatIsTheDeclaration

Mar 15th, 2013
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.47 KB | None | 0 0
  1. namespace WhatIsTheDeclaration
  2. {
  3.     // 1st exercise
  4.     public class Click {}
  5.     public class Clack : Click {}
  6.  
  7.     // 2nd exercise
  8.     public abstract class Top {}
  9.     public class Tip : Top {}
  10.  
  11.     // 3rd exercise
  12.     public abstract class Fee {}
  13.     public abstract class Fi {}
  14.  
  15.     // 4th exercise
  16.     interface Foo {}
  17.     public class Bar : Foo {}
  18.     public class Baz : Bar {}
  19.  
  20.     // 5th
  21.     interface Zeta {}
  22.     public class Alpha : Zeta {}
  23.     interface Beta {}
  24.     public class Delta : Alpha, Beta
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement