What is a default gateway

Hi Rene/Moderators,

With regards to this questions and answers
"
Hi Chris,

IP route is used on a router to enter something in its routing table. The effect will be the same…

Devices like switches don’t build a routing table so that’s when you need to use the ip default-gateway command. Also, on a router you can use it if you disable the routing table with “no ip routing”.

Rene
"

Am trying to fix some problems on L3 switches with ip routing enabled, which have eg.

ip default-gateway 10.10.10.10
and
ip route 0.0.0.0 0.0.0.0 20.20.20.20

Since ip routing is enabled, is the ip default-gateway 10.10.10.10 overridden?