Some virtual classrooms have class chat rooms in which students can meet to discuss the material and collaborate to get the work done. In a sense, they study together. While taking an online course, make a point of visiting this chat room every day to keep you in touch with what enfolds in discussion of course material.
The best online professors also visit the chat room to answer questions and discuss the material with students. When looking for an online program, look for one in which the teachers are not only in the chat rooms, but even have official "office hours" in chat so you are guaranteed to have their attention at this time. And remember, don't be shy about joining the discussion and asking questions. A good teacher will respect you for being interested in and thinking about the material.