Private name hacked
Encapsulation in C++ course : "We used encapsulation to hide the name attribute from the outside code. Then we provided access to it using public methods. Our class data can be read and modified only through those methods. " after doing some research, there is a person who showed how to access private name from outside class. Can anyone explain to me how? i know it modify memory address but i still don't get it, Why and How it can be done? See my code below : https://code.sololearn.com/c58bEXOI5rQh/?