Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
In aggregation we use a pointer e.g. like chair object in a room class
VU Help • House Banner VU Help Virtual University Students - Assignments, Solved Papers, GDB & Exam Help Student Help Forum • Collaborative • Free Support
#1
In aggregation we use a pointer e.g. like chair object in a room class
Reply
#2
In aggregation, you know very well that container class holds the pointer of contained class in order to perform specific functions like in your given example, chair is aggregated in Room class........means Room has the pointer of Chair Object.......Whenever, Room class needs some functionality like Chair Adjustment(........ ) in Room class, then, definitely by using the pointer of Chair, this kind of functionality can be achieved, please be remember that this function is defined in Chair class.

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
  Explain the difference b/w Null Pointer and Null Nodes? C++ 2012 Vuhelper 0 1,962 01-06-2012, 12:24 AM
Last Post: Vuhelper
  call by value, call by reference,call by pointer in data structure 2012 Vuhelper 0 4,341 01-04-2012, 10:28 PM
Last Post: Vuhelper
  What is the difference between “object = this->object” and “this->object=object”? Vuhelper 0 4,061 01-04-2012, 10:17 PM
Last Post: Vuhelper
  how can identify interface for an object Vuhelper 0 2,048 11-05-2011, 05:29 PM
Last Post: Vuhelper
  what does it mean " this->object=object"? Vuhelper 0 2,078 11-05-2011, 05:21 PM
Last Post: Vuhelper
  What is a Dangling pointer? Briefly explane with example. Vuhelper 0 1,889 11-05-2011, 05:13 PM
Last Post: Vuhelper
  Pointer question?? Vuhelper 0 1,438 08-30-2011, 09:55 PM
Last Post: Vuhelper
  C++ Help with Template class program 2011 Vuhelper 0 836 07-23-2011, 05:40 PM
Last Post: Vuhelper
  must have an argument of class or enumerated type Vuhelper 0 1,485 06-11-2011, 06:46 PM
Last Post: Vuhelper
  C++ access private data members in another class Vuhelper 0 1,981 06-07-2011, 08:26 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