Two semiconductor materials have different bandgaps, different work functions, electron affinities and dielectric constants. Let's assume they are lattice matched. The larger bandgap material is doped n-type (or N-type) and the smaller doped p-type.
In the heterojunction formed epitaxially...