|
-
May 30th, 2003, 09:30 AM
#1
Class Design problem
hi ..
here are my classes ..
class WellData ;
class SpotData ;
class Cell
{
protected:
int x1,y1;
int x2,y2;
WellData **well;
public:
Cell();
virtual ~Cell();
};
class WellData : public Cell
{
protected:
int x1,y1;
int x2,y2;
SpotData **spot;
public:
WellData();
~WellData();
};
class SpotData : public WellData
{
int x1,y1;
int x2,y2;
public:
SpotData();
};
I have in the usage ..
Cell assay;
I cannot access .. Spotdata private members from Cell .. but the other way is TRUE .. like .. I can access .. derived class members ..
How can i make 2 way access work ..
like.. from assay .. sud be able to acces .. welldata and spotdata ..
thank you
regards,
micromysore
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|