I have the code for the following java project. I cannot run the pro.docx

This preview shows page 2 - 3 out of 5 pages.

I have the code for the following java project. I cannot run the project because their is no main class.Design a class named Person with fields for holding a person's name , address, andtelephone number (all as Strings ). Write a constructor that initializes all of thesevalues , and mutator and accessor methods for every field.Next, design a class named Customer, which inherits from thePerson class . The Customerclass should have a String field for the customer number and a boolean field indicatingwhether the customer wishes to be on a mailing list. Write a constructor thatinitializes these values and the appropriate mutator and accessor methods forthe class 's fields.Demonstrate the Customer class in a program that prompts the user to enter valuesfor the customer's name , address, phone number, and customer number, and thenasks the user whether or not the customer wants to recieve mail. Use this informationto create a customer object and then print its information.

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture