Using Visual Studios C# AND SCREENSHOTS, WITH DIRECTIONSOF WHAT TO OPEN ON MICROSOFT VISUAL STUDIO 2017
Make sure to make two instances of a pet class. The pet shouldbe able to walk and talk. You should also be able to set it’s AgeName, and Type (cat, dog). Make sure to set and show values foreach of the three properties (variables): Name, Type, Age. Makesure to execute the walk and talk (just display messages “I amwalking”, “I am talking.”)
Solution
usingSystem;
classPet
{
private string name,type;
private int age;
//properties
public string Name
{
get
{
returnname;
OR
OR