Random position of class objects

here you don’t use the object obstacle1 that you derived from the class

in the class: what is the difference of x,y and obstacleXPos,obstacleYPos

Please show your entire, run-able code.

Chrisir