https vs vpn

Both HTTPS and VPN are widely used in today’s systems. Clearly they serve quite different purposes. In terms of how they are implemented, what do they have in common? How do they differ? Why would you choose one over the other for specific types of applications? Cite two examples, one in which HTTPS is the better choice and one in which VPN is the better choice.