Re: NOOB: Could someone explain in laymen's terms the reason for an Interface?
From: Chris (dunawayc_at_gmail.com)
Date: 01/07/05
- Next message: Chris: "Re: problem with data.Split(vbCrLf)"
- Previous message: Brian Mitchell: "Memory doesn't release (from collections)"
- In reply to: you: "NOOB: Could someone explain in laymen's terms the reason for an Interface?"
- Next in thread: Cor Ligthert: "Re: Could someone explain in laymen's terms the reason for an Interface?"
- Messages sorted by: [ date ] [ thread ]
Date: 7 Jan 2005 13:52:52 -0800
Have you ever used Adobe Photoshop? or any graphics app that has
"plugins"?
Plugins for these apps are typically written by third parties but in
order to work correctly in Photoshop, they must be written in a certain
way.
Photoshop, then, would define the interface, that is a specification
for a list of functions and properties that the plugin author must use,
or implement.
As long as the plugin writer follows the interface, then Photoshop will
be able use the plugin. Adobe has no idea about how the plugin works,
it just knows that it can call certain methods and get certain data
back in return. In other words, Photoshop doesn't have to know about
the internal workings of the plugin.
By the same token, the plugin doesn't have to know about the internal
workings of Photoshop either. All it knows is that Photoshop will call
a certain method and pass in certain data. The plugin then takes that
data, manipulates it however it wants, and returns data back to
Photoshop. What it returns is defined by the interface.
The whole point is that, Adobe publishes the interface, and third party
developers can develop to that interface with little or no help from
Adobe.
Chris
- Next message: Chris: "Re: problem with data.Split(vbCrLf)"
- Previous message: Brian Mitchell: "Memory doesn't release (from collections)"
- In reply to: you: "NOOB: Could someone explain in laymen's terms the reason for an Interface?"
- Next in thread: Cor Ligthert: "Re: Could someone explain in laymen's terms the reason for an Interface?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|