title: Parcelable and inheritance in Android
body: <p>I got an implementation of Parcelable working for a single class that involves no inheritance. I have problems figuring out the best way to implement the interface when it come to inheritance. Let's say I got this :</p>
  
  <pre><code>public abstract class A {
      private int a;
      protected A(int a) { this.a = a; }
  }
  
  public class B extends A {
      private int b;
      public B(int a, int b) { super(a); this.b = b; }
  }
  </code></pre>
  
  <p>Question is, which is the recommended way to implement the Parcelable interface for B (in A? in both of them? How?)</p>