They both have a single pointed vertex at the top.
What is something that a cone and a pyramid have in common?