Created
May 17, 2020 09:40
-
-
Save yogeshjoshi/c210c3571a4f958074b0049b1b8e509f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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