File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 4112
4112
Members of a class defined with the keyword
4113
4113
\keyword {class}
4114
4114
are
4115
- \tcode {private}
4115
+ \keyword {private}
4116
4116
by default.
4117
4117
Members of a class defined with the keywords
4118
4118
\keyword {struct} or \keyword {union}
4352
4352
4353
4353
\pnum
4354
4354
If a class is declared to be a base class\iref {class.derived } for another class using the
4355
- \tcode {public}
4355
+ \keyword {public}
4356
4356
access specifier, the
4357
4357
public members of the base class are accessible as
4358
4358
public members of the derived class and
4359
4359
protected members of the base class are accessible as
4360
4360
protected members of the derived class.
4361
4361
If a class is declared to be a base class for another class using the
4362
- \tcode {protected}
4362
+ \keyword {protected}
4363
4363
access specifier, the
4364
4364
public and protected members of the base class are accessible as
4365
4365
protected members of the derived class.
4366
4366
If a class is declared to be a base class for another class using the
4367
- \tcode {private}
4367
+ \keyword {private}
4368
4368
access specifier, the
4369
4369
public and protected
4370
4370
members of the base class are accessible as private
4380
4380
In the absence of an
4381
4381
\grammarterm {access-specifier}
4382
4382
for a base class,
4383
- \tcode {public}
4383
+ \keyword {public}
4384
4384
is assumed when the derived class is
4385
4385
defined with the \grammarterm {class-key}
4386
4386
\keyword {struct}
4387
4387
and
4388
- \tcode {private}
4388
+ \keyword {private}
4389
4389
is assumed when the class is
4390
4390
defined with the \grammarterm {class-key}
4391
4391
\keyword {class}.
You can’t perform that action at this time.
0 commit comments