class in TypeScript
Classes are declared by using the class keyword followed by an identifier. * TypeScript class has no class-level access modifier. * The name of the class follows the class keyword. The name of the class must be a valid identifier. * The remainder is the class body, where the class members are defined, including fields, and methods. ``` // [class] - [identifier] class Program { // Fields and methods go here... v: number = 10; } var p = new Program(); console.log(p.v) ```