Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

Hi Pankaj, Nice explanation. Can you please clarify below. If implementation of applyColor() method is different for both Triangle and Pentagon classes, then this design patterns is not suitable right?
- Prasad
Thanks Pankaj Very self explanatory tutorials. Any chance of that you will upload design-pattern vedioes?
- Dilip Kumar Pandey
Please elaborate on how the decoupling has happened between abstraction and implementation here. Still if we add any abstract method in Shape abstract class, implementation for it is to be provided in Triangle and Pentagon classes. Similarly if any method is declared in interface Color, its implementation needs to be provided in RedColor and GreenColor classes, so how is the decoupling achieved here…
- KranthiC
Hi Pankaj , Nice , simple explanation , after googling so many Design Pattern , its is one of most simple , that why i have saved as screen shoot . It would be favor for all , if u just shared the code as downloadable .
- Ashakant
The opening sentence, “When we have interface hierarchies in both interfaces as well as implementations”… Did you mean ‘inheritance hierarchies’, when you say ‘interface hierarchies’…?
- yousuf
Cool explanation as always. Which tool are you using for UML diagram.?
- Anil
Thanks Pankaj for the wonderful article on Design patterns, but you may want to correct the first line on this “Bridge pattern” page: "When we have interface hierarchies in both interfaces as well as implementations, then builder design " It is supposed to be bridge pattern and not builder.
- Jay
Please modify UML diagram, you draw association and describing it as composition.
- Anurag
Great article, I read 2 prior articles which described this pattern, but in no way demonstrated why you would ever have a need to use it. This article does both, and very simply.
- Paul