Top 1,000 Features Creators Resources Blog Explorer Download
GitHub icon

Access Modifiers

< >
Example from 1 languages: TypeScript
class Person { private _age = 2 public get age() { return _age } protected year = 1990 }
Example from 1 languages: Jule
pub
Example from 1 languages: Speedie
class Person |int| age setter age expect (value >= 0) ("bad age $value set!") .age = value main || p = person() p.age = -1 // calls a function rather than the property || n = p.age // reads the property directly!
*

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

*

Languages without Access Modifiers include JavaScript, C, progsbase

*

View all concepts with or missing a hasAccessModifiers measurement

*

Read more about Access Modifiers on the web: 1.

View source

- Build the next great programming language About Acknowledgements Extensions Day 630 Donate feedback@pldb.io