SHARE
TWEET

Animals

a guest Jul 7th, 2019 78 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4.  
  5. namespace Animals.Cats
  6. {
  7.  
  8.     public class Tomcat : Cat
  9.     {
  10.         private const string Gender = "Male";
  11.  
  12.         public Tomcat(string name, int age) : base(name, age, Gender)
  13.         {
  14.  
  15.         }
  16.  
  17.         public override void ProduceSound()
  18.         {
  19.             Console.WriteLine("MEOW");
  20.         }
  21.     }
  22. }
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