Dynamic invocation vs. late/dynamic binding
Mark Baker <[email protected]>
| Newsgroups | gmane.comp.web.services.ws-arch |
|---|---|
| Message-ID | <[email protected]> |
Hi Sanjiva,
On Tue, Jan 07, 2003 at 10:41:31PM +0600, Sanjiva Weerawarana wrote:
> There's nothing special at the code level whether the "operation"
> is GET or something that's looked up from a WSDL and dropped inside
> a SOAP envelope.
Yes, there is, as I've been trying really hard to explain.
Here's the Shape example again;
Class Square
{
displaySquare()
}
Class Circle
{
displayCircle()
}
interface Shape
{
display()
}
Late/dynamic binding means being able to manipulate squares and circles
with the Shape interface. Dynamic invocation means being able to
construct, for example, a "displaySquare" message without compile-time
knowledge of the full Square interface.
The former enables a client written to access Shape objects, to later
access triangles, ovals, hexagons, you name it. The latter doesn't.
MB
--
Mark Baker. Ottawa, Ontario, CANADA. http://www.markbaker.ca
Web architecture consulting, technical reports, evaluation & analysis