我怎么能违反Encapsulation属性?

Nag*_*tri 0 c++

如何在没有编译时错误的情况下违反Encapsulation属性?(在C++中)

好奇..

这实际上是我的一位教授提出的一个问题.请不要误解.当我们讨论编译器错误时,会问这个问题

fre*_*low 7

#define private public
#define protected public
#define class struct
Run Code Online (Sandbox Code Playgroud)

你去:-)