I've tried numerous ways to go about this but none of them worked. What I'm trying to achieve is this.
I have a class like this.
class Auton {
public:
int slot;
const char * name;
void run();
};
What I want to do is make the run
function do different things. For example -
// The code below doesn't work, unfortunately :(
Auton one;
void one::run() {
// Do something here
}
Auton two;
void two::run() {
// Do something different here
}
Is this possible?