Saturday, 30 May 2020

Chapter 14 // Exercise 4 - Principles & Practice Using C++

In this exercise I am using Visual Studio 2017 and the graphics files found here:
https://github.com/l-paz91/principles-practice/tree/master/Graphics%20Files

Chapter 14 // Exercise 4

Define a class Immobile_Circle, which is just like a Circle but can't be moved.

Github: N/A

For this you can declare a private section of your class and then put the functions you don't want a class to be able to override in there:


When you go to use the functions on a named Immobile_circle object the compiler will error:


No comments:

Post a Comment