且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

是否可以访问类的私有成员?

更新时间:2022-01-20 16:33:28

意味着使用一些指针算术来获得访问?这是可能的,但肯定是危险的。还要查看此问题:访问私人成员

You mean using some pointer arithmetic to gain the access ? It is possible but is definitely dangerous. Take a look at this question also: Accessing private members