When and why should I use public, private, and protected functions and variables inside a class? What is the difference between | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 5

When and why should I use public, private, and protected functions and variables inside a class? What is the difference between

22nd Aug 2017, 11:01 AM
Kurniawan
Kurniawan - avatar
2 Answers