Home > Dev > Understanding Interfaces and Polymorphism

Understanding Interfaces and Polymorphism

November 18th, 2006 Leave a comment Go to comments

I’ve been using Interfaces a couples of time now when needed but I never fully understood those down-sized Class construct wannabes. I knew they are useful when it is required to have an universal type for different objects but I haven’t fully grasped to scope why they are so useful otherwise. Also the fact that they can’t contain properties and only public method declarations confused me.

[ad#ad_content]This has changed instantly today when I read a sample eBook chapter of Joey Lott’s Advanced ActionScript 3 with Design Patterns on Adobe Labs new Digital Editions Service , a book that I actually ordered already a couple of days ago (takes a bit to ship to Japan though).

What can I say? This small chapter explains it extremely easy and logically. I’ve read EAS 2.0 and Head First but this sample chapter made me getting it for the first time really! It also explains about the difference of Abstract Classes and Interfaces, something that has not been mentioned in any other ActionScript book I’ve read so far.
Full respect to the author! If the rest of the book is of similar quality and clarity I shall be damned if I will not be an OOP Pattern Master in near future!

On a side note, the sample books are being downloaded of what looks like an Apollo app. I’m not sure how far this is related to Apollo but it works like a standalone eBook reader is downloaded and installed and sample chapters open in it.

  1. savvas
    November 18th, 2006 at 23:30 | #1

    Hello there..I’m waiting for this book too here in Greece via Amazon but i didn’t know there was a chapter in labs..Thanks!

  2. November 19th, 2006 at 00:50 | #2

    It does behave pretty much like Apollo.

    On the pc, an icon appears on the desktop and a new program entry is created. It works offline, without opening the browser, and you’ve got to go to the control panel to delete it.

    Also, the sample chapter is a drm protected pdf (ActionScriptChap.pdf).

  1. No trackbacks yet.
You must be logged in to post a comment.