0

What is public: in class of c++

please someone describe it breafly..

3rd Dec 2016, 2:39 PM
Hemanta Garai
Hemanta Garai - avatar
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.
3rd Dec 2016, 3:03 PM
Bahhaⵣ
Bahhaⵣ - avatar
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.
3rd Dec 2016, 3:52 PM
divya rajendran
divya rajendran - avatar