object oriented struct functions

I come from a js background and am trying to make a object for a wheel that stores all the needed information for that wheel
In js I could use this. as a means to access a variable in a function within an object as shown below


typedef struct{
     int speed;
     tMotor name;
     int start(){
          motor[this.name] = this.speed;
          return 0;
     }
} Wheel;

Wheel wheel0;
wheel0.speed = 127;
wheel0.name = wheelMotor0;
wheel0.start(); //motor starts

obviously oversimplified but you get the point. How could I do this in robotc (assuming it’s possible.)