But DanH is right, it totally depends on what you want to do.  It also
depends on what super does... If your subclass is setting information that
is also set by super then chances are you would want to call super first.
If what super does varies based on settings in your implementation, then you
would want to call super last.  If there is no such relationship then it
doesn't matter when you call.

Also, IMHO, you would only want to skip calling super in extremely rare
circumstances.

And, technically speaking, you would be calling "up" to the super
implementation, but that's just semantics... :-)

----------------------------------------------------------------------
There are only 10 types of people in the world...
Those who know binary and those who don't.
----------------------------------------------------------------------


On Thu, Jul 15, 2010 at 1:54 PM, DanH <[email protected]> wrote:

> Maybe, maybe not.  It depends on what you want to do.
>
> On Jul 15, 2:46 pm, Jake Colman <[email protected]> wrote:
> > When extending Service with your own Service, should you be calling down
> > to the super implementation of the methods that are being overridden?
> > If so, do you do it before or after you've invoked your own code?
> >
> > --
> > Jake Colman -- Android Tinkerer
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
>
> NEW! Try asking and tagging your question on Stack Overflow at
> http://stackoverflow.com/questions/tagged/android
>
> To unsubscribe from this group, send email to
> [email protected]<android-beginners%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-beginners?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to