Sponsored Links


Results 1 to 2 of 2

Thread: In aggregation we use a pointer e.g. like chair object in a room class

  1. #1
    Senior Member saneha's Avatar
    Join Date
    Apr 2011
    Posts
    266

    18 In aggregation we use a pointer e.g. like chair object in a room class

    Sponsored Links1



  2. #2
    Administrator Vuhelper's Avatar
    Join Date
    Apr 2011
    Posts
    9,578
    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 0
    Last Post: 02-22-2013, 04:35 PM
  2. Replies: 0
    Last Post: 05-12-2011, 09:00 PM
  3. Replies: 1
    Last Post: 05-02-2011, 06:41 AM
  4. const. pointer or pointer to const. char
    By saneha in forum C++ Programing
    Replies: 1
    Last Post: 04-29-2011, 08:47 AM
  5. What is Aggregation in OOP?
    By saneha in forum C++ Programing
    Replies: 1
    Last Post: 04-29-2011, 08:44 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
-: Vuhelp Disclaimer :-
None of the files shown here are hosted or transmitted by this server. The links are provided solely by this site's users. The administrator's or staff of Vuhelp.net cannot be held responsible for what its users post, or any other actions of its users. You may not use this site to distribute or download any material when you do not have the legal rights to do so. It is your own responsibility to adhere to these terms. If you have any doubts about legality of content or you have any suspicions, feel free to contact us.
Online Education | JhelumSoft