Hi,
This list has been incredibly helpful to read, and now I'm hoping someone has an answer for a question I have....


I'm having trouble understanding polymorphism in components.

I understand polymorphism to be the ability of an object to handle arguments of different datatypes appropriately depending on the type passed in. The clearest explanation I've found uses the example of an object with a display() operation that can display a video clip or a text file depending on what object gets passed in.

Where I get lost is HOW a component actually handles different datatypes. Does the display() method test for the type and then execute different code? If I understand the data typing correctly, what would be passed in is probably another object, as the datatype. If it is, it is a component name, right? How is that set dynamically if you don't know what's coming in?

Any information or examples would be greatly appreciated...I'm obviously way too confused!

Thanks,
Darcey


Darcey Spears Q3Studios Collaborative Web Development www.q3studios.com 520-360-5425


----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' in the message of the email.


CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]

Reply via email to