What is the meaning of [young folks think old folks to be fools,but old folks know young folks to be fools]

Young people think they are wiser than their elders, but the opposite is true.