2019-01-24
Default Class Access Modifier Differences between TypeScript & C#
selfnote, todayilearned, c, class
selfnote, todayilearned, c, class
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 🤔...