Problem
Pet Class
Create a class named Pet (similar to the one discussed in this chapter), which 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 pet's 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 pet's Name, Type, and Age properties and display their values on the screen.