static void Main(string[] args) { //Animal cat = new Animal(1, "Garfield", "Cat"); //Animal dog = new Animal(2, "Bark", "Dog"); //Dog dog = new Dog(); //dog.Id = 2; //dog.Name = "Bark"; //dog.Type = "Dog"; Dog dog = new Dog(2, "Bark", "Sharplaninec"); Cat cat = new Cat("High", "High", 1, "Garfield"); Console.WriteLine(dog.Eat()); Console.WriteLine(cat.GetInfo()); Console.WriteLine(dog.Bark()); Console.WriteLine(cat.Meow()); Tiger tiger = new Tiger("Low", "Medium", 3, "TigerName"); Console.WriteLine(tiger.Meow()); Console.WriteLine(cat.Eat()); Console.WriteLine(tiger.Eat()); //Demo ENUMS Human human = new Human("Risto", "Panchevski", new DateTime(1989, 7, 20), Days.Sun); Console.WriteLine(human.GetInfo()); }
static void Main(string[] args) { BMW bmw = new BMW(); bmw.Engine(); Car car = new BMW(); car.Door(); bmw.SteerWheel(); Animal.Eat(); Tiger.Eat(); Console.ReadLine(); }
static void Main(string[] args) { Animal animal = new Animal() { Id = 1, Name = "Ben", Type = "Dog", }; Dog majlo = new Dog() { Id = 2, Name = "Majlo", Type = "Dog", Breed = "Husky" }; Cat garfild = new Cat() { Id = 3, Name = "Garfild", Lazyness = "Very" }; Tiger tiger = new Tiger() { Id = 4, Name = "Tiger", Lazyness = "Non", }; animal.Eat(); majlo.Eat(); garfild.Eat(); garfild.Meow(); tiger.Eat(); tiger.Meow(); tiger.PrintInfo(); Console.ReadLine(); }