My TypeScript Software Design & Architecture book just prelaunched! Check out solidbook.io.
Close

Articles

2

Showing 2 article(s) about "OOP"



Static Factory Methods | Object-Oriented Programming w/ TypeScript
Nov 21st, 2019 / 1 min read
In this blog post, I explain how we can use the static factory method to enforce rules against how an object is created.
When to Use a Private Constructor | TypeScript OOP
Nov 21st, 2019 / 3 min read
In this blog post, I explain how using a private constructor helps to force a single way to create an object, and why it's most co...