Factory Method
Everything on SkillVeris tagged Factory Method — collected across the glossary, study notes, blog, and cheat sheets.
5 resources across 2 libraries
Cheat Sheets(2)
Java Design Patterns Cheat Sheet
Shows implementations of core Gang of Four design patterns including Singleton, Factory Method, Builder, and Observer in Java.
Creational Design Patterns Cheat Sheet
Singleton, Factory Method, and Builder patterns for controlling how and when objects get created, with trade-offs for each approach.
Interview Questions(3)
What is a Companion Object?
A companion object is a singleton tied to a specific class (in languages like Kotlin and Scala) that holds members logically scoped to the class itself rather…
Factory Method vs Abstract Factory
Factory Method defines a single method, usually overridden by subclasses, that creates one product, while Abstract Factory defines an interface with multiple f…
What is a Companion Object in Kotlin?
A companion object in Kotlin is a single, compiler-generated singleton declared inside a class with the `companion object` keyword that holds members callable…