© { JSL }
80
struct Declaration
·
a user-
defined
value
-
type
struct
Pair
{
public int
X, Y;
};
optional semi-colon
by convention public
names start with an
uppercase letter
(PascalCase)
struct
Pair
{
private int
x, y;
}
...and private names
start with a
lowercase letter
(camelCase)
struct
Pair
{
int
x, y;
}
default access
is
private