..be compatible with another class?
By the way, 'access variable' is the variable used to access the a class. Heres what I mean:
[code]
#include <iostream>
class Database
{
public:
int x;
}Data;
class Storage
{
public:
int y;
}Stor;
int main(int argc, char *argv[])
{
Storage *access;
access= (Database&)Stor; // Is this legal?
// If not, is there another way of pulling this stunt?
access.x= 9;
cin.get();
return 0;
}