Interfaces and game design ?

I was reading the Zechner’s book ( beginning android games ) just to realize that i have to come back quickly to my Java books .
However , more than the code itself , the BIG surprise for me was to see how the Author starts
implementing the game skeleton : a bunch of interfaces .
Nothing of similar in other beginners books ( Killer games programming in java , online tutorials etc…). So i’m wondering if the use of interfaces is an advanced design style and if there are
around some tutorials or books dealing with this subject.
Thanks a lot for any clarification !

Starting out with interfaces is an example of the advice program to an interface not an implementation. This Stack Overflow question has some good answers as to why it is desirable.

Thx JGO , useful link !

Heh, I’d argue for the complete opposite of that definition :slight_smile: Interfaces are classes, and they specifically cannot expose behaviour, only … er… well, a very loosely designed contract.

Cas :slight_smile:

btw You and Your don’t have capital Y in English, it’s “you” and “your” :slight_smile: It makes a very subtle difference in the way it can be understood.

Cas :slight_smile: