static void Main(string[] args) { Animal smulan = new Animal(); smulan._name = "Smulan"; smulan._species = "Dog"; smulan._color = "Green"; Person niklas = new Person("Niklas", 33, smulan); niklas.Eat(); niklas.Sleep(); niklas.ActivatePet(); }
static void Main(string[] args) { Pet dav = new Pet(); dav._name = "Dav"; dav._species = "Gris"; dav._color = "Blå"; Person andreas = new Person("Andreas", 17, dav); andreas.Name = ""; andreas.Eat(); andreas.Sleep(); andreas.ActivatePet(); }