Question: c++ below is the code that the question is referring to Part 3: Array of pointers to objects In this part, you need to reuse
c++ below is the code that the question is referring to



Part 3: Array of pointers to objects In this part, you need to reuse the class Course from lab 4. Recall that a Course class has the following private attributes: courseNumber, courseName, and number of credits. It also has the following public methods: Default constructor that sets courseNumber to 0, courseName to "", and number ofCredits to 0. Overloaded constructor that takes 3 parameters used to initialize the 3 attributes. Set function(s) that set the objects data. Print function that displays the object data in a neat fashion. Write a main program t hat: a) Declares an array of pointers to Course objects. You may assume the array size is 3 b) Makes the array point to 3 new Course objects (use the new operator in a for loop). c) Calls the class method set to set the attributes of these objects to the following: 70503 CS211 4 70507 CS231 4 70509 CS331 3 d) Calls the class method print to display the data of cach Course in a neat table format For example, Number Name Credits 70503 70507 70509 Cs211 CS231 CS331
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
