Thats maybe your teachers view let's see what Hitler said about Socialism with a few direct Quotes:
Socialism as the final concept of duty, the ethical duty of work, not just for oneself but also for one’s fellow man’s sake, and above all the principle: Common good before own good, a struggle against all parasitism and especially against easy and unearned income. And we were aware that in this fight we can rely on no one but our own people. We are convinced that socialism in the right sense will only be possible in nations and races that are Aryan, and there in the first place we hope for our own people and are convinced that socialism is inseparable from nationalism.
"Why We Are Anti-Semites," August 15, 1920 speech in Munich at the Hofbräuhaus. Speech also known as "Why Are We Anti-Semites?" Translated from Vierteljahrshefte für Zeitgeschichte, 16. Jahrg., 4. H. (Oct., 1968), pp. 390-420. Edited by Carolyn Yeager. [1]
Since we are socialists, we must necessarily also be antisemites because we want to fight against the very opposite: materialism and mammonism… How can you not be an antisemite, being a socialist!
"Why We Are Anti-Semites," August 15, 1920 speech in Munich at the Hofbräuhaus. Translated from Vierteljahrshefte für Zeitgeschichte, 16. Jahrg., 4. H. (Oct., 1968), pp. 390-420. Edited by Carolyn Yeager. [2]
Because it seems inseparable from the social idea and we do not believe that there could ever exist a state with lasting inner health if it is not built on internal social justice, and so we have joined forces with this knowledge.
"Why We Are Anti-Semites," August 15, 1920 speech in Munich at the Hofbräuhaus. Translated from Vierteljahrshefte für Zeitgeschichte, 16. Jahrg., 4. H. (Oct., 1968), pp. 390-420. Edited by Carolyn Yeager. [3]