The error i\'m getting is in the fillPayroll() method in the while loop where it says payroll.add(employee). The error says I can\'t invoke add() on an array type Person but th
If Class B extends A:
A a=new B();
but not:
B b=new A();