Hi friends i have one question about OOP.
I have
class A
{
/function body here
};
class B:public A
{
/function body here
};
class C:public A
{
/function body here
};
int main()
{
B b[20];
C c[40];
}
Each object of the derived classes(B and C)has x,y and z coordiantes. My problem is here how can i update new x,y and z values for all the objects simultaneously. Every time i calculate x,y and z values for all the objects and i need ti update x,y and z values for all the objects simultaneously...not one by one...