Which is correct?

I took this class before.

Or

I have taken this class before.

I think it is the first one.

1 answer

Both are correct.