A giraffe is a heterotroph because it obtains its food from other organisms. Giraffes are herbivores, which means that they primarily eat plants. They use their long necks to reach leaves and buds on trees and shrubs. Giraffes also eat fruits and flowers.