The chip on the card is an entire computer running a Java program every time it's activated by the terminal. What it communicates via that terminal can vary, the same way the NFC tap-to-pay terminals can vary. There's no need for it to carry a conventional card number or expiration or anything.
My reasoning operates under the assumption that the chip that communicates with the payment terminal sends a card number to the terminal at some point in time. I do not know how the protocol works in reality however.
Basically all smart cards use Java Card. There's an ISO standard, so I'm sure it's possible to implement your card in other environments, but everyone uses Java Card.