For example, I have this class named Member which basically creates a member who can log into a website. 5 things need to be initialised within the constructor whenever an instance of this object are made, one of them is the membership number. This membership number has to be unique. An idea I had was to add plus 1 to the number whenever a Member object is created.

Here is my current code:

```
    public Member(String newEmail, int newMoney)
    {
    // Intialises the email.
    email = newEmail;
    // Intialises the membership number.
    membershipNumber = 000;
    membershipNumber =+ 001;
    // Intialises the login status.
    loginStatus = false;
    //
    companions = new ArrayList<Friend>();
    // Intialises the members money.
    money = newMoney;
    }

```

Please ignore the loginStatus, companions and money.

As you can see i've set a default value for the membership number to be 000, and for +1 to be added onto it, but every member created, now matter how many I make, the membership number is always 1.

I tried another method by adding a whole other field like:

```
   public Member(String newEmail, int newMoney)
   {
    // Intialises the email.
    email = newEmail;
    // Intialises the membership number.
    membershipNumber = membershipNumberTwo;
    membershipNumberTwo =+ 001;
    // Intialises the login status.
    loginStatus = false;
    //
    companions = new ArrayList<Friend>();
    // Intialises the members money.
    money = newMoney;
    }

```

But the membership number is always 0.

Can anyone help me out by making the membership number have +1 added to it whenever the member is created in the constructor?
Thanks.

Disclaimer: Im at beginner level of Java.