Hi Christopher,

The use case is if you have a lot of classes that should implement the same interface, and you want to be able to work with this given interface without needing to know which type of class you're actually dealing with as long as that interface is present. Personally I don't use this feature very often, though.

What is the username that you registered on the forum? I will go and approve it.

Kind regards,

Philip Bennefall
----- Original Message ----- From: "Christopher Bartlett" <themusicalbre...@gmail.com>
To: "'Gamers Discussion list'" <gamers@audyssey.org>
Sent: Saturday, January 21, 2012 10:46 PM
Subject: [Audyssey] For Philip re: BGT interfaces vs inheritance.


I'd post this question on the Blastbay forum, but I haven't received my
approval yet.



What is the use case for an interface v. classic inheritance in object
definitions?  I've looked through the BGT documentation and I sort of
understand that you'd use an interface when you have some dissimilar objects
that share a method, like the birds and musical instruments both being sound
sources, to go with the example in your language tutorial.  But I don't
understand what this gains me in terms of programming convenience or code
compaction.  Could you clarify this a bit?



               Christopher Bartlett



---
Gamers mailing list __ Gamers@audyssey.org
If you want to leave the list, send E-mail to gamers-unsubscr...@audyssey.org.
You can make changes or update your subscription via the web, at
http://mail.audyssey.org/mailman/listinfo/gamers_audyssey.org.
All messages are archived and can be searched and read at
http://www.mail-archive.com/gamers@audyssey.org.
If you have any questions or concerns regarding the management of the list,
please send E-mail to gamers-ow...@audyssey.org.

---
Gamers mailing list __ Gamers@audyssey.org
If you want to leave the list, send E-mail to gamers-unsubscr...@audyssey.org.
You can make changes or update your subscription via the web, at
http://mail.audyssey.org/mailman/listinfo/gamers_audyssey.org.
All messages are archived and can be searched and read at
http://www.mail-archive.com/gamers@audyssey.org.
If you have any questions or concerns regarding the management of the list,
please send E-mail to gamers-ow...@audyssey.org.

Reply via email to