what's the default section of a class?

1
2
3
4
5
6
7
8
9
10
11
12
13
class X
{
    A

public:
    B

protected:
    C

private:
    D
};

Is A public or protected or private or both?
private, you can read more here: http://www.cplusplus.com/doc/tutorial/classes/
Topic archived. No new replies allowed.