Put in order · JavaScript and TypeScript course · Module 7: Advanced TypeScript
Access Modifier Visibility Scope
Order the access modifiers from most restrictive to broadest:
Items to put in order
- protected - class + inheriting classes
- public - accessible from anywhere
- private - accessible only within the class
You can check the correct answer by solving this task in the CodeWorlds game.