What is Synecdoche?

A synecdoche is a type of trobe where there is some part that represents the whole or a whole representing just a part. It’s like a figure of speech.