Hello, I am asking about true syntax of the following::
I have a class name P and in header file (of this class) ------>
class P
{
public:
P();
~P();
void addItem(const int newItem);
void deleteItem(const int Item);
void showAll();
/** need to proper getter funct. of tail */
private:
struct Node
{
int item;
Node *next;
Node *precede;
};
int size;
Node *tail;
};
Now I am asking that how I can write getter function of tail ? -class P will be used by another class. Thanks for replying.