2019-01-24

Default Class Access Modifier Differences between TypeScript & C#

selfnote, todayilearned, c, class

banner

title: 'Default Class Access Modifier Differences between TypeScript & C#' date: '2019-01-24' banner: ./images/featured-image-1.jpg published_at: '2019-01-25T01:14:23.000Z' tags: 'selfnote, todayilearned, c, class' author: Sung M. Kim

Photo by Patrick Fore on Unsplash

Note to self...

TypeScript's class access modifiers are public by default while it's private in C#.

Quite a surprise as TypeScript was created by Anders Hejlsberg, who also created C#.

Can't seem to find any articles/posts behind "why" they are public by default in TypeScript 🤔...