开发者

Programmatically change variable from public to private

开发者 https://www.devze.com 2023-02-16 11:33 出处:网络
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 p

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

精彩评论

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