0
What is public: in class of c++
please someone describe it breafly..
2 Answers
+ 1
public means :
any function or variable that are declared in the public section of the class can be accessed or called any where in the code outside the class.
0
in c++, public s a one of the type of protectiom .generally n c++,all variables are n public mode,if we declare a variable in public we can use tat variable or function in the out of tat class which a derived class or another class.



