Basically it is not data member but the pointer to object of the same class. So each generated object of this class can point to two other objects also called node of the same class. This is used to implement tree or link lists.
What is the concept of having the data member of the same class within it? i.e. class TreeNode { private: TreeNode *right; TreeNode *left; int Object; };View more random threads:
- Dear sir please clear the terms i++ and i-- what are their...
- What is generalization in c++ 2011
- array project code c++ 2011
- Use of Inline Function in c++ 2011
- C++ main program likhta hn magar wo run ni hota
- Inverse Permutation Question in c++ 2011-12
- what is Topic base content management system? How it looks...
- why we don’t use semicolon at the end of a function in C++?
- How to write Wav files in c++ 2011
- ASCII to char conversion code in C++ 2011
Sponsored Links
Basically it is not data member but the pointer to object of the same class. So each generated object of this class can point to two other objects also called node of the same class. This is used to implement tree or link lists.
There are currently 1 users browsing this thread. (0 members and 1 guests)