Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
what does it mean " this->object=object"?
VU Help • House Banner VU Help Virtual University Students - Assignments, Solved Papers, GDB & Exam Help Student Help Forum • Collaborative • Free Support
#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,071 01-04-2012, 10:17 PM
Last Post: Vuhelper
  how can identify interface for an object Vuhelper 0 2,061 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,581 05-12-2011, 09:00 PM
Last Post: Xpert
  What is the object state. in c++ 2011 saneha 1 1,809 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,568 05-02-2011, 04:48 PM
Last Post: Vuhelper
  C++ compiler can allocate dynamic memory for object? saneha 1 3,416 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,762 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,778 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,106 05-02-2011, 06:26 AM
Last Post: Vuhelper
  What is entity with respect to object oriented programming saneha 1 2,008 05-02-2011, 06:16 AM
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