Skip to content

Instantly share code, notes, and snippets.

@yogeshjoshi
Created May 17, 2020 09:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yogeshjoshi/c210c3571a4f958074b0049b1b8e509f to your computer and use it in GitHub Desktop.
Save yogeshjoshi/c210c3571a4f958074b0049b1b8e509f to your computer and use it in GitHub Desktop.
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
Public class MyPizza{
private int size;
private boolean cheese;
private boolean pepperoni;
private boolean bacon;
public void MyPizza(){
}
public void MyPizza(int size, boolean cheese, boolean pepperoni, boolean bacon){
this.size = size;
this.cheese = cheese;
this.pepperoni = pepperoni;
this.bacon = bacon;
}
//Setter And Getter already defined through lombok.Getter and lombok.setter
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment