Skip to Content.
Sympa Menu

gang-of-4-patterns - [gang-of-4-patterns] Design pattern is GDI

gang-of-4-patterns AT lists.cs.illinois.edu

Subject: Design Patterns discussion

List archive

[gang-of-4-patterns] Design pattern is GDI


Chronological Thread 
  • From: "Mandar Nanivadekar" <stackoverflow AT rediffmail.com>
  • To: gang-of-4-patterns AT cs.uiuc.edu
  • Subject: [gang-of-4-patterns] Design pattern is GDI
  • Date: 1 Dec 2004 10:25:15 -0000
  • List-archive: <http://mail.cs.uiuc.edu/pipermail/gang-of-4-patterns>
  • List-id: Design Patterns discussion <gang-of-4-patterns.cs.uiuc.edu>

Hello all,

I have a question.
GDI in windows is a device driver abstraction.
The client programmer does not know which device he is programming to.
It may be a display or a printer etc.
GDI hides all this,
and chooses the device driver currently installed on the machine.
The device driver written for windows has to conform to a particular interface. Hence GDI can work with any device.

Which design pattern is this?
Is it a factory?

Rgds,
Mandar






Archive powered by MHonArc 2.6.16.

Top of Page