Question: Please answer question BCD, We are rate a good and complete answer please don't comment thank you 2. The code block (which runs without break


2. The code block (which runs without break onto the next page) gives a C++ implementation of a class hierarchy for encoding information about people present at a university. (b) There are four errors in the code provided that will prevent it from compiling. Locate each error by giving the line number, and describe the nature of each error. [4 marks] (c) Assume that the aforementioned errors have been corrected. Write the output that the running code will produce. Where appropriate, describe why the code produces the output you have indicated. [4 marks) (d) Describe how you would implement a class called AttendanceList which could be used to store an ordered list of multiple university attendees (students, professors, etc.). Describe how you would use polymorphism and why, including the possible drawbacks of your choice 14 marks! 1 #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
