public static void Main(string[] args) { Animal cat = new Cat("Pesho", "W"); Animal dog = new Dog("Gosho", "Meet"); Console.WriteLine(cat.ExplainSelf()); Console.WriteLine(dog.ExplainSelf()); }
static void Main(string[] args) { Animal cat = new Cat("N***a", "Dick"); Animal dog = new Dog("Puto", "Pussay"); Console.WriteLine(cat.ExplainSelf()); Console.WriteLine(dog.ExplainSelf()); }
public static void Main() { Animal cat = new Cat("Pesho", "Whiskas"); Animal dog = new Dog("Gosho", "Meat"); Console.WriteLine(cat.ExplainSelf()); Console.WriteLine(dog.ExplainSelf()); }
static void Main(string[] args) { Animal cat = new Cat("Peter", "Whiskas"); Animal dog = new Dog("George", "Meat"); Console.WriteLine(cat.ExplainSelf()); Console.WriteLine(dog.ExplainSelf()); }
static void Main() { Animal cat = new Cat("Maria", "Whiskas"); Animal dog = new Dog("Rex", "Meat"); Console.WriteLine(cat.ExplainSelf()); Console.WriteLine(dog.ExplainSelf()); }
static void Main(string[] args) { Animal cat = new Cat("zoro", "koshudka"); var dog = new Dog("Pesho", "Kifte"); Console.WriteLine(cat.ExplainSelf()); Console.WriteLine(dog.ExplainSelf()); }
static void Main(string[] args) { Animals cat = new Cat("Pesho", "Whiskas"); Animals dog = new Dog("Gosho", "Meat"); Console.WriteLine(cat.ExplainSelf()); Console.WriteLine(dog.ExplainSelf()); }
static void Main(string[] args) { Animal animal = new Cat("Koti", "negativni emocii"); Console.WriteLine(animal.ExplainSelf()); animal = new Dog("Kuchi", "pozitivni emocii i salam"); Console.WriteLine(animal.ExplainSelf()); }
static void Main(string[] args) { Animal animal = new Cat("Kotka", "Hrana"); Console.WriteLine(animal.ExplainSelf()); animal = new Dog("Kuche", "Kucheshka hrana"); Console.WriteLine(animal.ExplainSelf()); }
static void Main(string[] args) { Animal cat = new Cat("john", "Whiskas"); Animal Dog = new Dog("hony", "Meat"); Console.WriteLine(cat.ExplainSelf()); Console.WriteLine(Dog.ExplainSelf()); Console.ReadKey(); }
static void Main(string[] args) { Animal animal = new Cat("Koti", "Negatiwni emocii"); Console.WriteLine(animal.ExplainSelf()); animal = new Dog("Ku4ee", "Pozitivni emocii"); Console.WriteLine(animal.ExplainSelf()); }
static void Main(string[] args) { Animal cat = new Cat("Maria", "Whiskas"); Animal dog = new Dog("Rex", "Meat"); Console.WriteLine(cat.ExplainSelf()); Console.WriteLine(dog.ExplainSelf()); ///Console.WriteLine("Hello World!"); }
static void Main(string[] args) { Animal dog = new Dog("Sharo", "kokal"); Console.WriteLine(dog.ExplainSelf()); Dog dog2 = new Dog("Bella", "drobcheta"); Cat cat = new Cat("myro", "fish"); Console.WriteLine(dog2.ExplainSelf()); Console.WriteLine(cat.ExplainSelf()); }
static void Main(string[] args) { Animal cat1 = new Cat("Kitty", "Whiskas"); Cat cat2 = new Cat("Hummor", "Mice"); Animal dog1 = new Dog("Doggo", "Meat"); Dog dog2 = new Dog("Mars", "Beef"); Console.WriteLine(cat1.ExplainSelf()); Console.WriteLine(cat2.ExplainSelf()); Console.WriteLine(dog1.ExplainSelf()); Console.WriteLine(dog2.ExplainSelf()); }
static void Main(string[] args) { // IAnimal animal = new Person(); // Mammal mammal = new Person(); // Person person = new Person(); // ((Person)animal).Name = "Pesho"; Animal cat = new Cat("Pesho", "Whiskas"); Animal dog = new Dog("Gosho", "Meat"); Console.WriteLine(cat.ExplainSelf()); Console.WriteLine(dog.ExplainSelf()); }
public void Run() { try { Animal cat = new Cat("Pesho", "Whiskas"); Animal dog = new Dog("Gosho", "Meat"); Console.WriteLine(cat.ExplainSelf()); Console.WriteLine(dog.ExplainSelf()); } catch (InvalidNameException ex) { Console.WriteLine(ex.Message); } catch (InvalidFoodException ex) { Console.WriteLine(ex.Message); } }
static void Main(string[] args) { Cat cat = new Cat("Gosho", "Wiskas"); Console.WriteLine(cat.ExplainSelf()); Dog dog = new Dog("Balkan", "Pedigrie"); Console.WriteLine(dog.ExplainSelf()); IMammal dog2 = new Animal("Street", "Bones"); Console.WriteLine(dog2.Wallking()); Console.WriteLine(); Console.WriteLine(); IMammal kuche = new Dog("Sashko", "Meat"); Console.WriteLine(kuche.Wallking()); }