Today, I was going through one of the projects in Google code repository and I found this. After reading this only even I understood whats the Adapter pattern is about :)
/**
* If you don't know about "Adapter", let me explain it in a short example:
* You are a girl and you have to sit during the time taking a piss.
* I am a boy and I can stand straight while taking a piss.
*
*If you have water-spout in your hands, you can stand upright to have a piss =))
* And from that point, you would have known: Yes, water-spout is an Adapter
*
* Just joking, forget it! Google Apdater design patterns =))
*/
No comments:
Post a Comment