Like the guitar the bass is also a transposing instrument with every note sounding an octave lower than written. The instrument itself is a staple in almost all forms of music from classical to jazz and contemporary music although certain details in the notation change in each of these styles.
For the most part upright bass and electric bass are notated in a similar fashion although certain techniques and effects (such as bowing) are unique to each instrument.
The upright bass, also known as the double bass, is most common in classical and jazz music but is also used in some rock and blues bands as well. While most upright players can double on the electric bass the opposite is not always true.
The electric bass is a staple in most rock, funk, fusion and contemporary ensembles but can also make an appearance in jazz music as well. As stated above not all electric bass players can also play the upright although both instruments are notated in the same way (with the exception of a few effects/techniques).