Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Client {
- public String name;
- public String email;
- public String phoneNumber;
- public Client(String name, String email, String phoneNumber) {
- this.name = name;
- this.email = email;
- this.phoneNumber = phoneNumber;
- }
- public void displayInfo() {
- System.out.println("The name of the client is: " + name);
- System.out.println("The email of the client is: " + email);
- System.out.println("The phone number of the client is: " + phoneNumber);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement