-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Open
Labels
leads questionA question for the leads teamA question for the leads team
Description
Summary of issue:
What precisely are the rules that determine what has access to members with private
or protected
access modifiers?
Here are some questions that I don't think are addressed by the current design:
- Can methods in an adapter of
C
access protected members ofC
? - Is access enforced only on name lookup and resolution, or is it affected by member binding? (For example, does access to a protected member of a base class require it be applied to an object or value of the current derived class?)
- Can a function on
C(T)
access private & protected members ofC(U)
? - If
Derived(T)
extendsBase(T)
, canDerived(T)
access protected members ofBase(U)
?
Context:
Classes: Access control documents the currently accepted design for access control modifiers. It documents the basics such as:
Metadata
Metadata
Assignees
Labels
leads questionA question for the leads teamA question for the leads team