Protected Pointer

Hi,

In this lecture, Ben has mentions we do not have to protect the pointer as it’s added in the contructor, what are we protecting the pointer against when we are and how do we protect? Is it by declaring it const or similar. Sorry if this is a basic question but not a C++ expert so had to ask…

Thanks in advance.
A

protect means to check the point by if statments

Privacy & Terms