In my opinion, when talking about the 4 dimensionnal space, your math teacher was refering to the space-time models of the universe, because as nak-1 said, "Trying to 'Visualise' anything other than a 3 dimensional space makes no sense".
When Einstein applied his special theory of relativity...