click-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Henry Saputra <henry.sapu...@gmail.com>
Subject Replacing ContextStack with java.util.Stack<Context>
Date Sat, 13 Mar 2010 18:15:31 GMT
HI Guys,

Is there a reason why we need to use ContextStack that extends ArrayList<T>
to manage the Context instances?

Could we just replace it with Stack<Context> or use delegation to member
variable  inside  the ContextStack instead of extending ArrayList?

Delegation always preferable to inheritance I think.

- Henry

Mime
View raw message