Learning TypeScript 2.x
上QQ阅读APP看书,第一时间看更新

Access modifiers

TypeScript allows us to restrict the access to the properties and methods of a class using the public, private, and protected keywords.