Marx, Class Conflict, and the Ideological Fallacy

According to Marx, all ideas represent class-based interests, leaving no room for objective truth. The problem is that Marxists claim to hold to objective truth, but manage to contradict themselves.