Sorry if I haven't understood what you wanted, but does..
void setAfromC(int value) {
setX(value);
} // I imagine this is what I'm missing??
void getAfromC() {
...