Question: 6 . Write a program in C + + using Object - oriented design. The program should have a class called Dog that has the

6. Write a program in C++ using Object-oriented design. The program
should have a class called Dog that has the attributes: Name, Age, and Breed
and a constructor to set these values and a method to print these values.
Write a main program that creates an array of 3 Dog objects and call the print
method.
Turn in: your source code and a screenshot of your output. (please note you
can copy/paste this into one file for upload to Canvas.
7. Now write the same program from #6 above using C++ and top down
design (no classes). Use an array of structs. The struct will have fields for
Age, Breed and Name.
Turn in: Your source code and a screenshot of your output. Again you can
paste this into one file to upload to Canvas.
8. Looking at the two programs designed in an object-oriented and top
down way (#6 and #7), which do you think would be easier to maintain and
why? Which method do you prefer?

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!