how to pass to argument to parent class from grand child class or sub class
<p>I am having parent class <code>P</code> that has constructor in it with an argument. I am having child class <code>C</code> that extends <code>P</code> and then I am having another sub child class <code>Sc</code> that extends <code>C</code>.</p>

<p>for example</p>

<p>parent class </p>

<pre><code>class P {

    Settings settings

    public P(Settings settings) {
        this.settings = settings
    }
}

class C extends P {

  Settings settings

   public C(Settings settings) {
   super(settings)
   this.settings = settings
  }
}

class Sc extends C {

      Settings settings

       public Sc(Settings settings) {
       super(settings)
       this.settings = settings
      }
    }
</code></pre>

<p>here I am able to pass the argument to the constructor from class C to class P but not from class Sc to class c and to class P. how can I pass argument to the super class from grand child class ?</p>