What To Say To A Person Who Thinks They Know Everything?

How do you talk to someone who thinks they are always right?

.

What is a word for someone who thinks they are better than everyone?

What do you call a person who thinks he knows everything?

What causes a know-it-all personality?