A classroom setting will help you, via a good instructor's sharing of real life situations, to better understand and appreciate the license law. There is little in the content itself that has much to do with the business of real estate in the context of the day to day business practices and realities.
On line is great for later, with continuing education specialty designations and other educational programs. There is a higher rate of success in terms of the length of being licensed for those who go through actual classroom courses for their broker license.
The Real Estate Institute is an excellent school, as is CAR's Look for a course that fits your schedule and your location, you have choices in both and the more comfortable the setting , the more you will learn.
Remember, the license is just the beginning...