Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Linklist Data Structure
#1
To access the data members or functions of a class with the help of an object, we have two operators: dot operator ( . ) and arrow operator ( -> )

When object is not a pointer, like we made List object as List myList; , we use dot operator to access functions of List class, like myList.add(2);
When object is of type pointer, like Node * currentNode; we use arrow operator to access functions of Node class, like currnetNode->getNext();

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,104 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,332 01-04-2012, 10:28 PM
Last Post: Vuhelper
  Balance of the AVL tree im Data structure 2012 Vuhelper 0 1,901 01-04-2012, 10:27 PM
Last Post: Vuhelper
  why we use queues data structure for level order traverse? Vuhelper 0 2,465 11-05-2011, 05:26 PM
Last Post: Vuhelper
  Boolean data problem in c++ 2011-12 Vuhelper 0 887 08-27-2011, 08:57 PM
Last Post: Vuhelper
  Overloaded >> operator not reading more than first line from data file in c++ 2011 Vuhelper 0 915 07-23-2011, 05:38 PM
Last Post: Vuhelper
  Read data from file into arrays in c++ 2011 Vuhelper 0 911 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 859 07-20-2011, 10:49 PM
Last Post: Vuhelper
  Structure with streaming in c++ 2011 Vuhelper 0 2,362 06-19-2011, 06:03 PM
Last Post: Vuhelper
  C++ access private data members in another class Vuhelper 0 1,968 06-07-2011, 08:26 PM
Last Post: Vuhelper

Forum Jump:


Users browsing this thread: 1 Guest(s)