Question: Language is C# class Program { static void Main(String args[]) { Pet dog, cat; c) Create 2 instances (Objects) of the Pet Class for dog

Language is C#Language is C# class Program { static void Main(String args[]) { Pet

class Program { static void Main(String args[]) { Pet dog, cat; c) Create 2 instances (Objects) of the Pet Class for dog and cat which are declared above. Use any unique hard coded (literal) values and do NOT redeclare the objects. d) Complete the code below that will display the name of dog and cat to the console Console.WriteLine("dog name is " ); Console.WriteLine("cat name is " ); (e) Complete the code below that will display the age of dog and cat to the console Console.WriteLine("dog age is " + Console.WriteLine("cat age is " + f) Write the statement below which assigns your own name to owner, which all pets is the owner of all pets } }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!