Question
Develop an application that creates a class named Pet (similar to the one discussed in this chapter), that has the following properties: Name - The
Develop an application that creates a class named Pet (similar to the one discussed in this chapter), that has the following properties:
Name - The Name property holds the name of a pet.
Type - The Type property holds the type of animal that a pet is. Example values are Dog, Cat, and Bird. Age -
The Age property holds the pets age.
Demonstrate the class in an application that creates an object of the class and lets the user enter the name, type, and age of his or her pet. This data should be stored in the object. Retrieve the pets Name, Type, and Age properties and display their values on the screen. Refer to the Module Assignment Tips and Walkthrough Videos in the Resources area for more specifics. Submit to the dropbox the zipped source file of your project.
Starting Out with Visual C# 2012 3rd Edition
Program 9-1 Name ecko Type: dog Name: ecko Type: dog Age: 2Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started