Virtual pet class

Write a program that creates a simple virtual pet class with attributes for name (string), health (int), and
happiness (int). Use a default constructor and an overloaded constructor that provides the constructor with the
name parameter. Create an object of each and display the information for each pet.

Sample Solution