To put it a slightly different way,
8-way and 4-way sticks both use 4 switches (Up, Down, Left, Right). On a 4-way the stick can only close one switch at a time. On an 8-way the stick can close two switches at a time for the diagonals(Up & Left, up & Right, Down & Left, Down & Right).