daily pastebin goal
28%
SHARE
TWEET

Untitled

a guest Jan 16th, 2019 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public interface IBall
  2. {
  3. }
  4. public class BilliardBall : IBall
  5. {
  6. }
  7. public abstract class Sport
  8. {
  9.     protected abstract IBall Ball { get; }
  10.  
  11. }
  12. public class Billiards : Sport
  13. {
  14.     protected override IBall Ball
  15.     {
  16.         get { return new BilliardBall(); }
  17.     }
  18. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top