0
How to use public private function in c++
use public privat
2 odpowiedzi
+ 2
Ganesh Jadhav generally data members are made private or protected which can be accessed using public methods..
methods can also be private or public and data member can also be public as well.
refer below code to get idea :
https://code.sololearn.com/cMC5mowoNF3F/?ref=app
0
using access specifiers is as simple as putting the name of the specifier (public, private, etc.) before the data that you want to assign it to, example:
class a
{
public:
int b;
}