Duck Typing is a powerful feature included primarily in newer languages. It provides the following capability: An object having all the methods described in an interface can be made to implement that interface dynamically at runtime, even if the objects class does not include the interface in its implements clause.
This is actually a somewhat restricted definition of Duck Typing compared to other languages. But it is the one I have chosen because it is the one I believe fits best with Javas design philosophy of having API contracts explicitly specified in interfaces up-front.
The good news is that although this feature is not built into the Java language, it turns out to be quite easy to implement.
Monday, May 09, 2005
Subscribe to:
Post Comments (Atom)
Popular Posts
- AS400 Job Scheduler
- Configuring Tomcat5 and Apache2 with Virtual Hosts using mod_jk
- EclipseZone - Clean Up Warnings with the 'restriction' Suppression Flag
- Using as400 QRCVDTAQ api to retrieve a message / entry from a dataqueue
- What is RPGsp (RPG Smart Pages)
- Common Gateway Interface (CGI) on the as400 / iSeries
- What is LANSA
- AS400 APIs
- Adobe Flex 2.0 Beta
- as400 Iseries Tips
No comments:
Post a Comment