On Fri, Nov 26, 2010 at 5:22 AM, pedr0 <[email protected]> wrote:

> when I have to implement the parcelable interface for B can I write in
> parcel only B object fields ?
>

You can write any fields you like into the parcel.


> can I be sure that the system call the parcelable interface implementation
> from object A?
>

The system will use the most derived class's implementation. If you want A's
functions to be called, you do so with a call to "super".

-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to