Skip to content

Instantly share code, notes, and snippets.

@mayhs19
Created July 2, 2021 14:15
Show Gist options
  • Save mayhs19/b151e7712f84716a4122f8ffde9caf09 to your computer and use it in GitHub Desktop.
Save mayhs19/b151e7712f84716a4122f8ffde9caf09 to your computer and use it in GitHub Desktop.
package com.no.code.syndrome;
/**
* @author svangipuramr
*
*/
public class Employee {
private String firstName;
private String lastName;
public Employee() {
//Default No-Arg Constructor
}
/**
*
* All-arg Constructor
*
* @param firstName
* @param lastName
*/
public Employee(String firstName, String lastName) {
super();
this.firstName = firstName;
this.lastName = lastName;
}
/**
*
* Getters-setters Area
*
*
*/
public String getFirstName() {
return firstName;
}
public void setFirstName(String firstName) {
this.firstName = firstName;
}
public String getLastName() {
return lastName;
}
public void setLastName(String lastName) {
this.lastName = lastName;
}
}
package com.no.code.syndrome;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class SmartEmployee {
private String firstName;
private String lastName;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment