typescript accessability code example Example: typescript default public or private TypeScript access modifiers are public by default.