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 :
A man rows to a place 42 km away and comes back to the starting point. If the speed of the stream is 2 km/hr and the speed of the boat in still water is...
The distance covered by a boat while moving in downstream in a fixed time is 3/4 more than in upstream. The speed of stream is what % of the still water...
Speed of boat in downstream is 45% more than speed of boat in still water. If speed of stream is 9 km/h, then find the time taken by the boat to cover 8...
A boat can travel 50 km upstream in 5 hours and 60 km downstream in 4 hours. Find the speed of the boat in still water.
The downstream speed of a boat is 6 km/hr more than its upstream speed and the ratio of the speed of the boat in still water to the speed of the stream ...
A boy can swim in water with a speed of 12 km/hr in still water. If the speed of the stream is 5 km/hr, what will be the time taken by the boy to cover ...
Two boats A and B start towards each other from two places, 600 km apart. Speed of the boat A and B in still water are 23 km/h and 17 km/h respectively....
A boat takes 7 hours to cover 266 km upstream and 9 hours to cover 468 km downstream. Find the time taken by the boat to cover 528 km upstream and 540 k...
The downstream speed of a boat is 4 km/hr more than its upstream speed and the ratio of the speed of the boat in still water to the speed of the stream ...
A boat covers 35 km downstream in 2 h and covers the same distance upstream in 7 h. Find the speed (in km/h) of the boat in still water.