Advertisement
sergAccount

Untitled

Feb 22nd, 2021
631
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.79 KB | None | 0 0
  1. /*
  2.  * To change this license header, choose License Headers in Project Properties.
  3.  * To change this template file, choose Tools | Templates
  4.  * and open the template in the editor.
  5.  */
  6. package com.spec.appfx2;
  7.  
  8. /**
  9.  *
  10.  * @author Admin
  11.  */
  12. public class Person {
  13.     //
  14.     private String firstName;
  15.     private String lastName;
  16.  
  17.     public Person(String firstName, String lastName) {
  18.         this.firstName = firstName;
  19.         this.lastName = lastName;
  20.     }
  21.     public String getFirstName() {
  22.         return firstName;
  23.     }
  24.  
  25.     public void setFirstName(String firstName) {
  26.         this.firstName = firstName;
  27.     }
  28.  
  29.     public String getLastName() {
  30.         return lastName;
  31.     }
  32.  
  33.     public void setLastName(String lastName) {
  34.         this.lastName = lastName;
  35.     }
  36. }
  37.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement