  We have studied accretion of the dark matter and dark energy onto of
$(n+2)$-dimensional Schwarzschild black hole and Morris-Thorne wormhole. The
mass and the rate of change of mass for $(n+2)$-dimensional Schwarzschild black
hole and Morris-Thorne wormhole have been found. We have assumed some
candidates of dark energy like holographic dark energy, new agegraphic dark
energy, quintessence, tachyon, DBI-essence, etc. The black hole mass and the
wormhole mass have been calculated in term of redshift when dark matter and
above types of dark energies accrete onto them separately. We have shown that
the black hole mass increases and wormhole mass decreases for holographic dark
energy, new agegraphic dark energy, quintessence, tachyon accretion and the
slope of increasing/decreasing of mass sensitively depends on the dimension.
But for DBI-essence accretion, the black hole mass first increases and then
decreases and the wormhole mass first decreases and then increases and the
slope of increasing/decreasing of mass not sensitively depends on the
dimension.
