The thorns of Bougainvillea and the tendrils of Cucurbita exhibit homology. That means, they are derived from the same embryological tissues but they are designed to do different jobs and hence they have adapted to different needs. This type of evolution is known as divergent evolution.