Builder pattern
Constructor initializer
class Point { constructor(private x:number, private y: number){} }
Union types
const x: number | string = 60;
Attributes (AOP)
rambocoder blog
Builder pattern
Constructor initializer
class Point { constructor(private x:number, private y: number){} }
Union types
const x: number | string = 60;
Attributes (AOP)