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 ( -> )View more random threads:
- declared one varibale char s1[10] but when i am inputing...
- latest C++ Books 2011
- What is cope and complexity in c++ 2011 ?
- when we make codes in Devc++ after press F9 (compiling) the...
- Use of Inline Function in c++ 2011
- Please explain the term stacking overhead in C++
- C++ Help with Template class program 2011
- C++ Crabs 2011
- Define Explicit and implicit in c++ 2011
- Overloaded >> operator not reading more than first line...
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();
Sponsored Links
There are currently 1 users browsing this thread. (0 members and 1 guests)