i need this coded in java:
Instructions :
Design a class named Person with fields for holding a person’s name, address, and telephone number. Write one or more constructors and the appropriate mutator and accessor methods for the class’s fields.
Next, design a class named Customer, which extends the Person class. The Customer class should have a field for a customer number and a boolean field indicating whether the customer wishes to be on a mailing list. Write one or more constructors and the appropriate mutator and accessor methods for the class’s fields.
this is in main.java:
public class Main
{
public static void main(String[] args)
{
// Create a Customer object for Julie James.
Customer myCustomer = new Customer("Julie James",
"123 Main Street", "555-1212", "147-A049", true);
// Display the object's data.
System.out.println("Name: " + myCustomer.getName());
System.out.println("Address: " + myCustomer.getAddress());
System.out.println("Telephone: " + myCustomer.getPhone());
System.out.println("Customer Number: " + myCustomer.getCustomerNumber());
if (myCustomer.getMailingList())
System.out.println("Mailing List: YES");
else
System.out.println("Mailing List: NO");
}
}
this is in person.java
/**
The Person class stores data about a person for the
Person and Customer Classes programming challenge.
*/
public class Person
{
}