passing attributes of superclass to subclass
<p>I have Employee, manager class.</p>

<p>employee has private String name, int age, double salary. they have to be placed in one method. i placed them in String details </p>

<pre><code>public void details(String name,int age, double salary)
{
    this.name=name;
    this.age=age;
    this.salary=salary;
  }
</code></pre>

<p>then they have to be passed down to class manager but theres a new attribute to be added, which is department.</p>

<pre><code>class Manager extends Employee{
    private string department;
}
</code></pre>

<p>thats my problem, i cant output the attributes together with the attribute department. </p>
