Discussion on:

2
Comments

Join the conversation!

Follow via:
RSS
Email Alert
0 Votes
+ -
re:
When used with CFCs, polymorphism means that you can call the same method on different types

Actually, the cfc must be a subtype of the type in question. If it were a 'different' type, polymorphism would not work. In fact, the sub-type is the same 'type' as it's superclass in that it has a substitutability relationship with it and 'IS A' supertype 'type' also.

Nice article, well written. Good to see this stuff being covered!

Andles.
this is a good article on polymorphism, but i would like to see some descriptions on organizing these classes in packages. great article!

jg4
Keyboard Shortcuts:
Prev
Next
Toggle
Join the conversation
Formatting +
BB Codes - Note: HTML is not supported in forums
  • [b] Bold [/b]
  • [i] Italic [/i]
  • [u] Underline [/u]
  • [s] Strikethrough [/s]
  • [q] "Quote" [/q]
  • [ol][*] 1. Ordered List [/ol]
  • [ul][*] · Unordered List [/ul]
  • [pre] Preformat [/pre]
  • [quote] "Blockquote" [/quote]

Join the TechRepublic Community and join the conversation! Signing-up is free and quick, Do it now, we want to hear your opinion.