Start learning 50% faster. Sign in now
The Factory Pattern is a creational design pattern that provides an interface for creating objects in a superclass but allows subclasses to alter the type of objects that will be created. It abstracts the instantiation process, enabling flexibility and scalability in object creation. For instance, in a GUI framework, the factory method might create different types of buttons (WindowsButton, MacButton) depending on the operating system. By decoupling the client code from concrete classes, this pattern promotes adherence to the Open/Closed Principle of SOLID. Why Other Options Are Incorrect :
What was the theme for the International Day of Girl Child 2022?
Who recently launched the 'Mission Lifestyle for Environment' (LiFE) initiative in Assam, and what does the initiative focus on?
With reference to Overseas Citizen of India (OCI) Cardholder, consider the following statements:
1. A citizen of another country who was a citize...
Which airport in India has been ranked the world ’ s 10th busiest?
India's first underwater metro expected to be ready by ______?
The Agra Fort is built of -
What is the MSP for wheat in the 2025–26 Rabi marketing season?
Sathyamangalam Tiger Reserve (STR) in __________ has been given the TX2 award after its tiger numbers doubled to 80 since 2010.
Which of the following statements is/are correct about the new orchid species discovered in Sikkim?
1. Gastrodia indica is the first cleistogamou...
Which Indian public sector company received the Green World Environment Award for its Thalassemia Bal Sewa Yojna?