Default Class Access Modifier Differences between TypeScript & C#

featured
January 25, 2019
💫 Originally posted here. Broken? Let me know ~

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 🤔…