Sisters travelling to Austria, Prague and Budapest- is night travel recommended via busses ?

Me and my sister are planning to tour Vienna Prague and Budapest in September. How safe is the night busses from Prague to Budapest ? What is the best mode to travel between the three cities ? Also, if it's train, is there a rail pass ?

Thanks :)