public- access specifier. Access specifiers apply only inside the body class/struct, not inside namespace. In C ++ (unlike Java), it should be followed by a colon :inside the body class.
For instance,
class DecisionTree {
public:
static double Entropy (int pos, int neg);
private:
int i;
};
source
share