PLDB
Languages Features Calendar About Lists Add Language
GitHub icon

Access Modifiers

Access Modifiers

Access Modifiers are a language feature.

Languages without Access Modifiers include JavaScript

Languages with Access Modifiers include Java, C++, PHP, C#, Swift, TypeScript, Kotlin, F#, Solidity, Protocol Buffers, ABAP, Koka, Apex, Sophia

Example from TypeScript:

class Person { private _age = 2 public get age() { return _age } protected year = 1990 }

Article source

PLDB - Build the next great programming language 路 v2022 Docs Acknowledgements Email GitHub