They share their classification of heterotrophs. The mushrooms need to acquire food from external sites that are obtained from other sources, while the tree belongs to the classification of autotrophs which means that they obtain food without going to look for it but through photosynthesis. But both are heterotrophic.