php hit counter

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
What is the concept of having the data member of the same class within it? i.e. class
VU Help • House Banner VU Help Virtual University Students - Assignments, Solved Papers, GDB & Exam Help Student Help Forum • Collaborative • Free Support
#1
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; };
Reply
#2
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.

0300-9520262
Get solution in 24 hour
|cpmputer & internetConfusedmileys81:[SIZE="4"][SIZE="3"]....[/SIZE][/SIZE]
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Abstract data type (ADT) in C++ 2012 Vuhelper 0 7,250 01-04-2012, 10:34 PM
Last Post: Vuhelper
  call by value, call by reference,call by pointer in data structure 2012 Vuhelper 0 4,476 01-04-2012, 10:28 PM
Last Post: Vuhelper
  Balance of the AVL tree im Data structure 2012 Vuhelper 0 2,038 01-04-2012, 10:27 PM
Last Post: Vuhelper
  why we use queues data structure for level order traverse? Vuhelper 0 2,613 11-05-2011, 05:26 PM
Last Post: Vuhelper
  Linklist Data Structure Vuhelper 0 2,038 11-05-2011, 05:11 PM
Last Post: Vuhelper
  Boolean data problem in c++ 2011-12 Vuhelper 0 1,027 08-27-2011, 08:57 PM
Last Post: Vuhelper
  C++ Help with Template class program 2011 Vuhelper 0 967 07-23-2011, 05:40 PM
Last Post: Vuhelper
  Overloaded >> operator not reading more than first line from data file in c++ 2011 Vuhelper 0 1,062 07-23-2011, 05:38 PM
Last Post: Vuhelper
  Read data from file into arrays in c++ 2011 Vuhelper 0 1,056 07-20-2011, 10:58 PM
Last Post: Vuhelper
  how to pass a simlpe list of data type struct to function in c++ 2011 Vuhelper 0 1,002 07-20-2011, 10:49 PM
Last Post: Vuhelper

Forum Jump:


Users browsing this thread: 1 Guest(s)
VU Help • House Banner VU Help Virtual University Students - Assignments, Solved Papers, GDB & Exam Help Student Help Forum • Collaborative • Free Support