However, it's incomplete and needs a specific subject after "de". It's like saying "I like the class of..." in English.
Here are some examples with a complete sentence:
* Me gusta la clase de matemáticas. (I like the math class.)
* Me gusta la clase de historia. (I like the history class.)
* Me gusta la clase de español. (I like the Spanish class.)
You can replace "matemáticas", "historia", or "español" with any other subject to complete the sentence.