05-02-2011, 04:48 PM
In aggregation we use a pointer e.g. like chair object in a room class
|
In aggregation we use a pointer e.g. like chair object in a room class
|
|
05-02-2011, 04:48 PM
In aggregation we use a pointer e.g. like chair object in a room class
05-02-2011, 04:48 PM
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 & internet mileys81:[SIZE="4"][SIZE="3"]....[/SIZE][/SIZE]
|
|
« Next Oldest | Next Newest »
|