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 :
Which of the following is a key change introduced in the new Income Tax Bill tabled in Lok Sabha?
Under the new guideline by SEBI for all the trades in proprietary capacity, stock brokers will have to undertake at least _____ of their total seconda...
What document did the Telecom Regulatory Authority of India (TRAI) issue regarding the National Numbering Plan?
Which organization partnered with IndusInd Bank to enhance Climate Risk Management and community resilience?
Who won the Prime Minister election in Mauritius on November 11, 2024?
Where is the famous ‘Virupaksha Temple’ located?
Network Readiness Index 2022 report is based on their performances in four different pillars, which of the following piller is not correct?
'Maori tribes' belong to which Nation?
What is the expected annual energy output of the Heo Hydro Electric Project?