-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCustomerTest.java
More file actions
33 lines (29 loc) · 824 Bytes
/
CustomerTest.java
File metadata and controls
33 lines (29 loc) · 824 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author Administrator
*/
public class CustomerTest {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
Customer cust1, cust2;
cust1 = new Customer();
cust2 = new Customer();
// Assign values to member fields
cust1.customerID = 1;
cust1.name = "Mary Smith";
cust1.emailAddress = "[email protected]";
cust2.customerID = 2;
cust2.name = "Frank Jones";
cust2.emailAddress = "[email protected]";
// Display customer info for each object
/*cust2 = cust1;*/
cust1.displayCustomerInfo();
cust2.displayCustomerInfo();
}
}