Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package sample;
- import java.util.ArrayList;
- public class Customer {
- //1) attributes / variables
- private String name;
- private int password;
- //like [] but we don't have to specify the size
- //to check whether you can enter / exit
- private ArrayList<Ticket> myTiceket = new ArrayList<Ticket>();
- //2) constructors
- public Customer(String name, int password) {
- this.name = name;
- this.password = password;
- }
- //3) getter & setter & method
- public String getName() {
- return name;
- }
- public void setName(String name) {
- this.name = name;
- }
- public int getPassword() {
- return password;
- }
- public void setPassword(int password) {
- this.password = password;
- }
- public ArrayList<Ticket> getMyTiceket() {
- return myTiceket;
- }
- public void setMyTiceket(ArrayList<Ticket> myTiceket) {
- this.myTiceket = myTiceket;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement