public string getPetName()
public void setPetName(string name)
public void setPetAge(int age)
public string getPetBreed()
public void setPetBreed(string breed)
string output = name + "is" + age + " years old and is a " + breed;
Console.WriteLine("How many pets do you own?");
int numberOfPets = int.Parse(Console.ReadLine());
Pet[] pets = new Pet[numberOfPets];
for (int i=0; i<numberOfPets; i++)
Console.WriteLine("What is your pet's name?");
pets[i].name = Console.ReadLine();
Console.WriteLine("What is this pet's age?");
Console.WriteLine("What is this pet's breed?");
for (int i=0; i<numberOfPets; i++)
Console.WriteLine("Your pet's details: ");
Pet youngestPet = pets[0];
Console.WriteLine("The youngest pet is: " + youngestPet.name);
Console.WriteLine("The oldest pet is: " + oldestPet.name);