encapsulation problems :)

Here we go. I got this:

class Expression
{
public:
Expression(void);
~Expression(void);
.
.
.
private:
};

class Function : public Expression
{
public:
.
.
private:
list<Arguments> list;
};

Function class has some methods and a list of Args.
On main i make an Function object and i put some arguments on it.
Then i put the Function in a Exression list.When i get an expression
from the list i try to call a method that is defined in the Function object
but i can not do that because it can not see the methods of Function class.
Any ideas?
virtual functions
Non sequitur.

You need to post your code and the compile error.
Topic archived. No new replies allowed.