What is the difference between the in person class and the online class ?

With respect to the DMV there is no difference which way you take the course. Some Courts however do require an in person class and you should check with the court if you are in doubt.