Group 2 Exercises

In small groups, you should create a small presentation about one of the topics below. Your presentation should not exceed 5 minutes.

Topic 1:

What is a Pure Virtual Function? How would you define it? Why and when is it needed?

Topic 2:

Explain how the following program (rational.cpp) is working. Do you find any weaknesses in the design?

Topic 3:

If in the program rational.cpp you add this line in main  cout << 14 << " + " << b << " = " << 14 + b << endl; the program is not working can you explain why and how you would go about solving it?

Topic 4:

Explain how the following program (pmain4.cpp) is working. You will also need to download point.h and point.cpp


Last modified: Tuesday, 4 December 2018, 9:51 PM