using System;
// Create a Pet class
class Pet
{
// Declaring the public variables / fields
public string petName;
public string petBreed;
public int petAge;
// Create a class constructor for the Pet class
public Pet()
petName = "Black"; // Set the initial value for petName.
petBreed = "Dog"; // Set the initial value for petBreed.
petAge = 4; // Set the initial value for petAge.
}
/**********************************************************************************************/
public class Program
public static void Main()
Pet myPets = new Pet(); // Create an object of the Pet Class (this will call the constructor)
Console.WriteLine(myPets.petName); // Print the value of petName
Console.WriteLine(myPets.petBreed); // Print the value of petBreed
Console.WriteLine(myPets.petAge); // Print the value of petAge