Use Visual Studio 2017 Using C Show Codes Screenshots Creating Class File Make Sure Make T Q37147821

Use Visual Studio 2017 using C# and show all codes andscreenshots.

You will be creating a class file. Make sure to make twoinstances of a pet class. The pet should be able to walk and talk.You should also be able to set it’s Age Name, and Type (cat, dog).Make sure to set and show values for each of the three properties(variables): Name, Type, Age. Make sure to execute the walk andtalk (just display messages “I am walking”, “I am talking.”).


Solution


//PetProject.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace PetProject
{
    class Program
    {
        static voidMain(string[] args)
        {
           //Create an instance of Pet class
           Pet pet =

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.