First: >smack< You're silly.
Now:
It's not a hack. It's a valid way to provide assurance that an object
will have all methods required available.
Consider:
public interface MyFrameworkReadyObjectInterface
extends Clonable, Comparable, Serializable
...
If there was only one place that needed both interfaces available, then
its over-designed, but if it happens all over the place, its a good
decision in favor of brevity and clarity.
Bill
--- Bob Tanner <tanner at real-time.com> wrote:
> Well, smack me and call me silly.
>
<snip/>
> My question is: Is this a hack?
>
> An interface that just extends 2 other interfaces just to combine
> them into a
> nice "package" seem wrong to me OO desing side, but my old C-hack
> side says it
> works, so do it.
>
> Futher design details show that there are some object that just do
> CreditPaymentInformation and other classes that just do
> CyberCashResponse, but a
> majorit of them do both.
>
>
>
>
> --
> Bob Tanner <tanner at real-time.com> | Phone : (952)943-8700
> http://www.mn-linux.org | Fax : (952)943-8500
> Key fingerprint = 6C E9 51 4F D5 3E 4C 66 62 A9 10 E5 35 85 39 D9
>
> _______________________________________________
> tclug-devel mailing list
> tclug-devel at mn-linux.org
> https://mailman.mn-linux.org/mailman/listinfo/tclug-devel
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/