Advertisement
GeorgePashev_88

Contacts Entity Class

Apr 23rd, 2024
760
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.66 KB | Source Code | 0 0
  1. public class Contacts {
  2.     protected String Name, ID, Address, Email, Phone;
  3.     public Contacts(){
  4.         Name=""; ID=""; Address=""; Email=""; Phone = "";
  5.     }
  6.     public Contacts(String ID, String Name, String Address, String Email, String Phone){
  7.         this.ID = ID; this.Name=Name; this.Address=Address;
  8.         this.Email = Email; this.Phone = Phone;
  9.  
  10.     }
  11.     public String getName(){
  12.         return Name;
  13.     }
  14.     public String getID(){
  15.         return ID;
  16.     }
  17.     public String getAddress(){
  18.         return Address;
  19.     }
  20.     public String getEmail(){
  21.         return Email;
  22.     }
  23.  
  24.     public String getPhone(){ return Phone; }
  25.  
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement