Hello guys where I can see example how to protection callback() and receive()

fallback() external payable {
buyTokens(msg.sender);
}

receive() external payable virtual {
buyTokens(msg.sender);
}