If a Holly tree (Ilex aquifolium) finds its leaves are being nibbled by deer, it modifies its DNA to make them spiky when they regrow. So on taller Holly trees, the upper leaves (which are out of reach) have smooth edges, while the lower leaves are prickly.
📷 Leif Bersweden 