Was Hitler a Socialist?

Hitler was undoubtedly an anti-capitalist and a socialist in the modern sense of the word