Question: 4. Write the class definition for a Dog. Private data fields include name, breed, and age, and a constant static field for the license fee,
4. Write the class definition for a Dog. Private data fields include name, breed, and age, and a constant static field for the license fee, which is $12.25. Create public member functions to set and display the data. Write a main()function that demonstrates the class operates correctly. Save the file as Dog.cpp.
Any coding assignments will have to be submitted in .cpp format and a Word document with the code copy/pasted and screenshots of the output.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
