title: Lombok @Builder inheritance for 3 Classes
body: <p>This is probably a beginner question but I am getting confused.</p>
  
  <p>I have 3 classes as shown below. How do I use lombok's @Builder annotation in this case. </p>
  
  <p>I get an error in Class C when trying to do as below code.</p>
  
  <p>Will Class C work if the parent class Class B also has <code>@Builder</code> annotation? </p>
  
  <p>I get an error:- Error: java: builder() in ClassC cannot hide builder() in ClassB return type ClassCBuilder is not compatible with ClassBBuilder</p>
  
  <p>Class C:</p>
  
  <pre><code>import lombok.Builder;
  public class C extends B {
      private String fieldC;
  
      @Builder
      public C(String fieldC, String fieldB, String fieldA) {
          super(fieldB, String fieldA);
          this.fieldC = fieldC;
      }
  }
  </code></pre>
  
  <p>Class B:</p>
  
  <pre><code>import lombok.Builder;
  public class B extends A {
      private String fieldB;
  
      @Builder
      public B(String fieldB, String fieldA) {
          super(fieldA);
          this.fieldB = fieldB;
      }
  }
  </code></pre>
  
  <p>Class A:</p>
  
  <pre><code>import lombok.AllArgsConstructor;
  import lombok.Getter;
  import lombok.Setter;
  @Getter
  @Setter
  @AllArgsConstructor
  public abstract class A {
      private String fieldA;
  }
  </code></pre>