Advertisement
Vladkoheca

Client.java

Nov 22nd, 2024 (edited)
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.53 KB | Source Code | 0 0
  1. public class Client {
  2.     public String name;
  3.     public String email;
  4.     public String  phoneNumber;
  5.  
  6.     public Client(String name, String email, String phoneNumber) {
  7.         this.name = name;
  8.         this.email = email;
  9.         this.phoneNumber = phoneNumber;
  10.     }
  11.     public void displayInfo() {
  12.         System.out.println("The name of the client is: " + name);
  13.         System.out.println("The email of the client is: " + email);
  14.         System.out.println("The phone number of the client is: " + phoneNumber);
  15.     }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement