Thorns of $Bougainvillea$ and tendrils of $Cucurbita\$ are homologous organs. These are modified branches and are axillary in position. It means axillary branches in $Bougainvillea$ are modified into thorns for protection from burrowing animals and in $Cucurbita$into tendrils for climbing.