{ sung.codes }

by dance2die
Blog
← Go Back

Default Class Access Modifier Differences between TypeScript & C#

Broken Post?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 🤔...