Use access modifiers for classes in typescript

Similar to Java, TypeScript comes with access modifiers for classes. These access modifiers have different properties. We have public, protected, or private access modifiers.
Private: only accessible inside the class
Protected: only accessible anywhere inside the class and athrough the subclasses
Public: accessible anywhere