Need help understanding this block of code (java)
<pre><code>public class Bicycle {

private int cadence;
private int gear;
private int speed;

public Bicycle(int startCadence, int startSpeed, int startGear) {
    gear = startGear;
    cadence = startCadence;
    speed = startSpeed;
}
</code></pre>

<p>when you write gear = startGear; what does this actually do? does it temporary set the value of gear as whatever your input is for the time-being, then it resets back to zero? Is this called instance of a variable?</p>

<p>And can someone explain to me what exactly is an "instance of an object"? is there one in here? 
I thought an instance of an object is when someone writes Bicycle bike1 = new Bicycle(); and bike1 is an instance of an object.  Sorry I am a total noob.</p>
