/* * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template */ package miamigo_client_base; /** * * @author garnet */ public class Human { private String firstName, lastName, otherName; private String nid; //A national ID private String pid; //A passport number private String contact; public Human (String fn, String ln, String on, String nid, String pid, String c){ firstName = fn; lastName = ln; otherName = on; this.nid = nid; this.pid = pid; contact = c; } public Human(){ } public String toString(){ return firstName+" "+otherName+" "+lastName+" National ID = "+nid+ " Passport = "+pid+" Contact: "+contact; } public String get_firstName(){ return firstName; } public String get_lastName(){ return lastName; } public String get_otherName(){ return lastName; } public String get_nid(){ return nid; } public String get_pid(){ return pid; } public String get_contact(){ return contact; } }