A good way to know for sure is to test...
I took a base page and I pasted the lines:
Code:<style type="text/css">
.S0 { color: #800080; }
.S1 { color: #FF2020; font-weight: bold; }
.S5 { color: #8080A0; }
.C { font-family: 'Andale Mono', "Bitstream Vera Sans Mono', 'Courier New', 'Monaco', monospace;
color: #000000; background: #FFFFFF; font-size: 8pt;
}
</style>
<span class="C S5">abstract</span> <span class="C S5">class</span> <span class="C S0">Segment</span> <span class="C S1">{</span><br />
in two different places of the page.
Note I changed it a bit: the generic family is 'monospace', not 'fixed', and I made another class to avoid changing the style of the generic span tag (not a problem when the page with the source code is standalone, annoying in a bigger context).
[EDIT] Stupid me, one just have to change the .span rule to something like div.Code .span and enclose the code in a div with class Code, for example. No need for double class here.
It worked fine. Note that if the second batch of styles is changed, it is this one which is taken in account (cascading rule).
Tested in Firefox 2, IE6 and Opera 9.