java container class assign an array

I am using eclipse and I am new to it.  It gives me the error about creating an array in my container class CustomerHome.   What is wrong with the assignment?  What do I need to do if I want to create an array assignment based on Customers in the CustomerHome container class and add members to the customers array using CustomerHome?

public class Customers {
    public String getName() {
            return name;
      public void setName(String name) {
   = name;
      public String getSsNumber() {
            return ssNumber;
      public void setSsNumber(String ssNumber) {
            this.ssNumber = ssNumber;
      public Customers(String name, String ssNumber) {
   = name;
            this.ssNumber = ssNumber;
      String name;
    String ssNumber;
    public class CustomerHome extends Customers {
          public CustomerHome(String name, String ssNumber) {
                  super(name, ssNumber);
                  // TODO Auto-generated constructor stub

     Customers custarr[] = new custarr[10];
Who is Participating?
dpearsonConnect With a Mentor Commented:

 CustomerHome custarr[] = new CustomerHome[10];


 Customers custarr[] = new CustomerHome[10];

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.