+ 1

Difference between Public and private pls🙏đŸ„ș

Crowdsourcing!

15th Jul 2021, 7:50 AM
Jhun Ray Omiping
Jhun Ray Omiping - avatar
2 Answers
+ 4
Public variables are visible from outside the class, private variables are only visible from inside the class. That means you can not use a private variable of a class in another class
15th Jul 2021, 9:08 AM
Orango Mango
Orango Mango - avatar
+ 1
Answer is in the names themselves
15th Jul 2021, 10:02 AM
anon