The SRD includes this notion with the Unearthed Arcana material, as in
here. They're called "prestigious classes." For example, you can qualify to become a paladin with 4 levels of fighter (with the right skill and feat choices) and 1 level of cleric. It then gives 15 levels of advancement. The prestige paladin has slightly stronger spellcasting and slightly less strength in the class features.