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