SHARE
TWEET

Untitled

a guest Aug 23rd, 2019 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public abstract class BaseAnimal : IAnimal
  2.     {
  3.         protected string name { get; set; }
  4.  
  5.         protected BaseAnimal(string name)
  6.         {
  7.             this.name = name;
  8.         }
  9.  
  10.         public void DoEat()
  11.         {
  12.             Console.WriteLine(name + " is eating.");
  13.         }
  14.  
  15.         public abstract void DoMove();
  16.     }
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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top