You can remember the meaning of 上课 with this easy mnemonic:
My son gets up (上) early to go to class on Mondays because of his favorite subject (课), math.
Using mnemonics to remember the meaning of Chinese characters like can have an enormous impact on how long to learn Mandarin it takes.