Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
what does it mean " this->object=object"?
#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
  What is the difference between “object = this->object” and “this->object=object”? Vuhelper 0 4,047 01-04-2012, 10:17 PM
Last Post: Vuhelper
  how can identify interface for an object Vuhelper 0 2,035 11-05-2011, 05:29 PM
Last Post: Vuhelper
  Is it possible to make data type array which act as java Class Object in dev c++ 2011 Xpert 0 2,562 05-12-2011, 09:00 PM
Last Post: Xpert
  What is the object state. in c++ 2011 saneha 1 1,795 05-02-2011, 05:24 PM
Last Post: Vuhelper
  In aggregation we use a pointer e.g. like chair object in a room class saneha 1 2,555 05-02-2011, 04:48 PM
Last Post: Vuhelper
  C++ compiler can allocate dynamic memory for object? saneha 1 3,393 05-02-2011, 06:55 AM
Last Post: Vuhelper
  is the dot operator connect the class object and a member of that class? saneha 1 2,741 05-02-2011, 06:41 AM
Last Post: Vuhelper
  how the information hidden within an object can be assessed either dot operator conne saneha 1 2,764 05-02-2011, 06:37 AM
Last Post: Vuhelper
  what is difference between object data type and Permitive data type in c++ 2011 saneha 1 8,078 05-02-2011, 06:26 AM
Last Post: Vuhelper
  What is entity with respect to object oriented programming saneha 1 1,984 05-02-2011, 06:16 AM
Last Post: Vuhelper

Forum Jump:


Users browsing this thread: 1 Guest(s)