Binary star
Though it could be possible that binary stars may form when one star passes very close to another, it is highly unlikely (since it would actually take three stars close to one another before two could join), and would occur only in places where stars are densely packed together. Our present understanding is that almost all binaries are formed together in the dense gas clouds where stars are born.