-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCustomer.java
More file actions
24 lines (22 loc) · 654 Bytes
/
Copy pathCustomer.java
File metadata and controls
24 lines (22 loc) · 654 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
package java_core;
public class Customer {
String customerName;
String contactNumber;
String address;
Customer(String customerName, String contactNumber, String address){
this.customerName=customerName;
this.contactNumber=contactNumber;
this.address=address;
}
void displayCustomerDetails(){
System.out.println(customerName);
System.out.println(contactNumber);
System.out.println(address);
}
}
class Tester{
public static void main(String args[]){
Customer piyush = new Customer("piyush", "7733", "eARTH");
piyush.displayCustomerDetails();
}
}