开发者

Programmatically change variable from public to private

Is it possible for me to programmatically change a variable from public to private within a function call of 开发者_StackOverflow社区a class?


No it is not possible to change a variable from public to private.


Use access modifiers (setters, getters)and set private property to a public property.

You cannot change visibility of property.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜