HiveBrain v1.2.0
Get Started
← Back to all entries
patterntypescriptCritical

Which access modifiers are implied when not specified?

Submitted by: @import:stackoverflow-api··
0
Viewed 0 times
modifiersaccessspecifiedarewhennotwhichimplied

Problem

For all of the different concepts that support access modifiers, such as fields, properties, methods and classes, which access modifiers are implied if not specified?

Solution

Everything in a class is public if not specified. Everything in a module is private unless export keyword is used.

Context

Stack Overflow Q#20696932, score: 256

Revisions (0)

No revisions yet.