Question: C++ coding Create a class called NumberList that holds a user-defined maximum number of integers in a vector. If more than the maximum number of
C++ coding
Create a class called NumberList that holds a user-defined maximum number of integers in a vector. If more than the maximum number of integers is added an error message should be printed out. Write a method print_list that prints the numberof integers in the list and each number stored in the list. Create at least 2 NumberList objects, fill them, and print their contents. Include your NumberList class and print_list method below along with sample output. You should use good C++ object-oriented design principles, including using a separate .cpp & .h file for defining NumberList.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
