Well, that's an interesting an complicated phenomenon. If you tested those eggs, or the resulting individuals at any point of development, the result would be whatever sex they are genetically. However, the phenotypical, or externally observable sex would be the opposite because these animals instead of developing as usual, with the characteristics of their genetic sex, develop the characteristics of the opposite sex because different genes are turned off and on.
P.waltl for example has a ZZ/ZW chromosome system like we have XX/XY, but the difference is that while there are some differences, both choromosonal types contain all the necessary information to make a complete, fertile female, so a genetic male, through the activation and inactivation of different genes can develop into a fertile female.
It gets reaaaaallly complicated, but that's the gist of it. I hope that was helpful xD