reset password
Author Message
LG60
Posts: 6
Posted 19:11 Oct 07, 2018 |

Is a person object supposed to be made with phone number objects inside or is it supposed to have an array of phone numbers only inside the parameter?

Person(String fName,String lName,String email,String address,String...pNumber)

I made my person class this way allowing for instances of phone number to be put in infinitely and the person class would store them inside an arraylist but when you make the child class Employee and add the parameters officelocation and salaray this would no longer work because the addition of the phone numbers would have to be the last thing in the parameters.