473,724 Members | 2,226 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

OO Aggregation!

hey

Can OO Aggregation be described as:
- A system of objects that are built using each other

any comments?

Jeff
Nov 27 '06 #1
6 7845
I feel it is a incomplete/ or rather wrong definition..

It has the idea, but not clearly seperate from it's close relatives such as
Association and Composition.

But what you really want to know

Nirosh.

"Jeff" <it************ @hotmail.com.NO SPAMwrote in message
news:%2******** ********@TK2MSF TNGP03.phx.gbl. ..
hey

Can OO Aggregation be described as:
- A system of objects that are built using each other

any comments?

Jeff

Nov 27 '06 #2
Thanks, I'm studying C# for to take a certification exam on it. (my boss
wants me do it)... So yesterday I took a skill assessment test at
microsoft.com.. ... Today I'm reviewing what I answered, and checking what
I've done wrong. One of the questions was: Which of the following describe
the OO concept of Aggragation:

These were the alternatives answers:
#1: A system of objects that are not related
#2: A system of objects that are built using each other
#3: A system of objects that define each other
#4: A system of objects inherited from each other
#5: A system of objects that implement each other

I answered #2... but as you suggest #2 is a bit incomplete... do you have
any suggestion on which of the other definitions it could be?

Jeff


"Champika Nirosh" <te**@tc.comwro te in message
news:OU******** ******@TK2MSFTN GP02.phx.gbl...
>I feel it is a incomplete/ or rather wrong definition..

It has the idea, but not clearly seperate from it's close relatives such
as Association and Composition.

But what you really want to know

Nirosh.

"Jeff" <it************ @hotmail.com.NO SPAMwrote in message
news:%2******** ********@TK2MSF TNGP03.phx.gbl. ..
>hey

Can OO Aggregation be described as:
- A system of objects that are built using each other

any comments?

Jeff


Nov 27 '06 #3
If you give this list to me, I will also pick the #2..

Nirosh.

"Jeff" <it************ @hotmail.com.NO SPAMwrote in message
news:eF******** ******@TK2MSFTN GP06.phx.gbl...
Thanks, I'm studying C# for to take a certification exam on it. (my boss
wants me do it)... So yesterday I took a skill assessment test at
microsoft.com.. ... Today I'm reviewing what I answered, and checking what
I've done wrong. One of the questions was: Which of the following describe
the OO concept of Aggragation:

These were the alternatives answers:
#1: A system of objects that are not related
#2: A system of objects that are built using each other
#3: A system of objects that define each other
#4: A system of objects inherited from each other
#5: A system of objects that implement each other

I answered #2... but as you suggest #2 is a bit incomplete... do you have
any suggestion on which of the other definitions it could be?

Jeff


"Champika Nirosh" <te**@tc.comwro te in message
news:OU******** ******@TK2MSFTN GP02.phx.gbl...
>>I feel it is a incomplete/ or rather wrong definition..

It has the idea, but not clearly seperate from it's close relatives such
as Association and Composition.

But what you really want to know

Nirosh.

"Jeff" <it************ @hotmail.com.NO SPAMwrote in message
news:%2******* *********@TK2MS FTNGP03.phx.gbl ...
>>hey

Can OO Aggregation be described as:
- A system of objects that are built using each other

any comments?

Jeff



Nov 27 '06 #4
I keep feeling like I should sit some of the MS exams, but then it's
questions / answer sets like this that put me off. I worked through a few
of the online preparation tests and sometimes the answers are worded so
badly it's a lottery if you pass or not.

- Paul.
"Jeff" <it************ @hotmail.com.NO SPAMwrote in message
news:eF******** ******@TK2MSFTN GP06.phx.gbl...
Thanks, I'm studying C# for to take a certification exam on it. (my boss
wants me do it)... So yesterday I took a skill assessment test at
microsoft.com.. ... Today I'm reviewing what I answered, and checking what
I've done wrong. One of the questions was: Which of the following describe
the OO concept of Aggragation:

These were the alternatives answers:
#1: A system of objects that are not related
#2: A system of objects that are built using each other
#3: A system of objects that define each other
#4: A system of objects inherited from each other
#5: A system of objects that implement each other

I answered #2... but as you suggest #2 is a bit incomplete... do you have
any suggestion on which of the other definitions it could be?

Jeff


"Champika Nirosh" <te**@tc.comwro te in message
news:OU******** ******@TK2MSFTN GP02.phx.gbl...
>>I feel it is a incomplete/ or rather wrong definition..

It has the idea, but not clearly seperate from it's close relatives such
as Association and Composition.

But what you really want to know

Nirosh.

"Jeff" <it************ @hotmail.com.NO SPAMwrote in message
news:%2******* *********@TK2MS FTNGP03.phx.gbl ...
>>hey

Can OO Aggregation be described as:
- A system of objects that are built using each other

any comments?

Jeff



Nov 27 '06 #5
Agree with you, this test preparation already is starting to give me a
headache
"Paul" <no****@noone.c omwrote in message
news:ux******** ******@TK2MSFTN GP03.phx.gbl...
>I keep feeling like I should sit some of the MS exams, but then it's
questions / answer sets like this that put me off. I worked through a few
of the online preparation tests and sometimes the answers are worded so
badly it's a lottery if you pass or not.

- Paul.
"Jeff" <it************ @hotmail.com.NO SPAMwrote in message
news:eF******** ******@TK2MSFTN GP06.phx.gbl...
>Thanks, I'm studying C# for to take a certification exam on it. (my boss
wants me do it)... So yesterday I took a skill assessment test at
microsoft.com. .... Today I'm reviewing what I answered, and checking what
I've done wrong. One of the questions was: Which of the following
describe the OO concept of Aggragation:

These were the alternatives answers:
#1: A system of objects that are not related
#2: A system of objects that are built using each other
#3: A system of objects that define each other
#4: A system of objects inherited from each other
#5: A system of objects that implement each other

I answered #2... but as you suggest #2 is a bit incomplete... do you
have any suggestion on which of the other definitions it could be?

Jeff


"Champika Nirosh" <te**@tc.comwro te in message
news:OU******* *******@TK2MSFT NGP02.phx.gbl.. .
>>>I feel it is a incomplete/ or rather wrong definition..

It has the idea, but not clearly seperate from it's close relatives such
as Association and Composition.

But what you really want to know

Nirosh.

"Jeff" <it************ @hotmail.com.NO SPAMwrote in message
news:%2****** **********@TK2M SFTNGP03.phx.gb l...
hey

Can OO Aggregation be described as:
- A system of objects that are built using each other

any comments?

Jeff



Nov 27 '06 #6
Hi Jeff,
#1: A system of objects that are not related
Aggregation implies containment, so I'd say that this is incorrect.

FYI, ownership of constituents is normally called composition. In terms of
disposal logic, this means that the Dispose method of a compositing object
will call Dispose on its components, whereas an aggregator wouldn't.
#2: A system of objects that are built using each other
True, but incomplete. This definition doesn't imply containment. "Using"
an object isn't exactly the same as containing it.
#3: A system of objects that define each other
The identity of the constituents are certainly not defined by the
aggregator, although one could argue that the aggregator is partially
defined by its constituents. I'd say this answer is wrong.
#4: A system of objects inherited from each other
Wrong. That is subtyping. Although, it's possible to have recursive
composition whereby a class composites itself or one of its subtypes, but
that certainly isn't the best definition for aggregation.
#5: A system of objects that implement each other
An aggregator doesn't implement its components and its components don't
normally implement the aggregator, except in recursive composition like I've
mentioned above. I'd say this answer is wrong.
So it seems #2 is the best choice; however, I'd say that it's not the best
definition of aggregation.

--
Dave Sexton

"Jeff" <it************ @hotmail.com.NO SPAMwrote in message
news:eF******** ******@TK2MSFTN GP06.phx.gbl...
Thanks, I'm studying C# for to take a certification exam on it. (my boss
wants me do it)... So yesterday I took a skill assessment test at
microsoft.com.. ... Today I'm reviewing what I answered, and checking what
I've done wrong. One of the questions was: Which of the following describe
the OO concept of Aggragation:

These were the alternatives answers:
#1: A system of objects that are not related
#2: A system of objects that are built using each other
#3: A system of objects that define each other
#4: A system of objects inherited from each other
#5: A system of objects that implement each other

I answered #2... but as you suggest #2 is a bit incomplete... do you have
any suggestion on which of the other definitions it could be?

Jeff


"Champika Nirosh" <te**@tc.comwro te in message
news:OU******** ******@TK2MSFTN GP02.phx.gbl...
>>I feel it is a incomplete/ or rather wrong definition..

It has the idea, but not clearly seperate from it's close relatives such
as Association and Composition.

But what you really want to know

Nirosh.

"Jeff" <it************ @hotmail.com.NO SPAMwrote in message
news:%2******* *********@TK2MS FTNGP03.phx.gbl ...
>>hey

Can OO Aggregation be described as:
- A system of objects that are built using each other

any comments?

Jeff



Nov 27 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2916
by: Nice Chap | last post by:
Aggregation in COM was defined as 'Exposing an interface of an inner object by the outer object as though it were an interface of the outer object'. Is this type of aggregation possible in c#? For example... Class COuter - 'Contains' an instance variable of type CInner Class CInner - Implements IList Can COuter be made to look like its implementing IList?
5
3780
by: John Wood | last post by:
Let's say you're provided with an instance of a class. The instantiation takes place in another module that you have no control over. However, you've extended that class with your own value-added functionality. In C#, given such an instance, and a derived class, there's no way to 'attach' the instance to the class -- you have to either change the way the class was instantiated (not possible in this case), or wrap the class and delegate...
4
10965
by: cmrchs | last post by:
Hi, how do I implement aggregation and how composition in C# ? When I say : an Airplane has a Pilot then I use aggregation but when I say : an Airplane has a Cockpit then I use composition. How do I implement the difference in C# ? Here's what I try : class Pilot
2
2626
by: Jozsef Bekes | last post by:
Hi, I would like to implement aggregation in C#, therefore I'd need to implement the queryinterface COM function of a class. I am not sure whether this can be done, and if yes where to start. If someone has an example, a hint or anything that might help, please share it with me. Thanks and Regards, Jozsi
4
14448
by: Frederik Vanderhaegen | last post by:
Hi, Can anyone explain me the difference between aggregation and composition? I know that they both are "whole-part" relationships and that composition parts are destroyed when the composition whole is destroyed. Under a "whole-part" relationship I understand the following: the whole can't exists without the parts, but can the parts exist without the hole? f.e.: a car can't exist without an engine private engine _Engine
23
2124
by: SenthilVel | last post by:
Hi Can any one let me know the websites/Pdf for learning Aggragation in C#?? Thanks Senthil
1
2031
by: ninjutsu28 | last post by:
hi im juz a student so pls bear with my terminologies..juz wana ask how to perform aggregation in vb.net code.. in my model, i have rectangle, shape, drawing classes..rectangle class inherits shape class (is - a relationship), and drawing class has shape class(aggregation) Shape Class: Public MustInherit Class CShape Rectangle Class: Public Class CRectangle
7
15195
by: Bruce One | last post by:
In C#, how would people implement a relationship between Customer class and Request class, considering a customer may have 0-n requests and a request must belong to 1 and only 1 customer...? Would about the following options? OPTION 1 -------------------------- public class Customer() { private int CustomerID;
0
1245
by: Karigar | last post by:
I have been so far developing COM servers and clients in C++. I am new to C#/NET way of doing COM and was wondering if it is possible to accomplish aggregation in .NET platform. By aggregation I mean classic COM aggregation in which the outer object controls which interfaces it of inner object it exposes, and to the outside world it appears as the inner object without having to implement all the interfaces. By aggregation I do not mean a...
0
8741
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
9160
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8063
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6689
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5996
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4504
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3210
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2613
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2149
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.