SHARE
TWEET

Untitled

a guest Aug 19th, 2019 78 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package com.alansolisflores.mvp.models;
  2.  
  3. public class Person {
  4.  
  5.     private String firstName;
  6.  
  7.     private String lastName;
  8.  
  9.     public Person(String firstName, String lastName) {
  10.         this.firstName = firstName;
  11.         this.lastName = lastName;
  12.     }
  13.  
  14.     public String getFirstName() {
  15.         return firstName;
  16.     }
  17.  
  18.     public void setFirstName(String firstName) {
  19.         this.firstName = firstName;
  20.     }
  21.  
  22.     public String getLastName() {
  23.         return lastName;
  24.     }
  25.  
  26.     public void setLastName(String lastName) {
  27.         this.lastName = lastName;
  28.     }
  29.  
  30.     public String getName() {
  31.         return this.firstName + " " + this.lastName;
  32.     }
  33. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top