-
-
Save jhamukul007/5cdbbd707bf4e16aac51f1dfc173e45f to your computer and use it in GitHub Desktop.
Project
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
public class Project { | |
private Integer projectId; | |
private String name; | |
private String location; | |
private Integer availablePosition; | |
public Project(Integer projectId, String name, String location) { | |
this.projectId = projectId; | |
this.name = name; | |
this.location = location; | |
this.availablePosition = 50; | |
} | |
public Integer getProjectId() { | |
return projectId; | |
} | |
public String getName() { | |
return name; | |
} | |
public String getLocation() { | |
return location; | |
} | |
public Integer getAvailablePosition() { | |
return availablePosition; | |
} | |
public void reduceAvailablePosition() { | |
this.availablePosition = this.availablePosition-1; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment