|
by: Dave |
last post by:
Hello all,
The methodology of policy-based design states that one should inherit from
policy classes and, of course, these classes must provide an agreed-upon
public interface and semantics.
I would like to understand better why inheritance, rather than containment,
is espoused. The only things I can see that inheritance provides beyond
containment is the possibility of polymorphism and access to protected
members. Since neither of...
|
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?
|
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...
|
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
|
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
|
|
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
|
by: SenthilVel |
last post by:
Hi
Can any one let me know the websites/Pdf for learning Aggragation in C#??
Thanks
Senthil
|
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
|
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...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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,...
|
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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...
|
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();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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
|
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|