|
|
|
The struct keyword declares a class that has public access by default. Inheritance is also public by default. See class for syntax rules. Examplestruct point {
int x, y;
};
struct point p1; // "struct" is redundant here.
point p2;
See Alsoclass, union, Chapter 6 |
|
|
|