I have minecraft on my pc, and i able to play with my friend who has an xbox?

I just got my Pc set up and logged into my old minecraft account so i could play, and my buddy whp has an xbox says we can together despite having different systems. Is this true? And if so, how do we connect to play?
3 answers 3