Have all mammals got four legs?

No. If you look at a whale, it is a mammal but it has a tail and fins and a monkey has 2 arms and 2 legs scientifically classified.