Click here to Skip to main content
15,885,366 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
AnswerRe: Messaging engine/system for cross platform development Pin
jschell7-Mar-13 8:54
jschell7-Mar-13 8:54 
GeneralRe: Messaging engine/system for cross platform development Pin
dexterama7-Mar-13 10:10
professionaldexterama7-Mar-13 10:10 
GeneralRe: Messaging engine/system for cross platform development Pin
Eddy Vluggen7-Mar-13 22:48
professionalEddy Vluggen7-Mar-13 22:48 
GeneralRe: Messaging engine/system for cross platform development Pin
jschell8-Mar-13 12:33
jschell8-Mar-13 12:33 
QuestionSync file uploading between servers Pin
nitin_ion28-Feb-13 16:20
nitin_ion28-Feb-13 16:20 
AnswerRe: Sync file uploading between servers Pin
Marco Bertschi14-Mar-13 22:14
protectorMarco Bertschi14-Mar-13 22:14 
Questionmultiple inheritance Pin
ron0123427-Feb-13 21:59
ron0123427-Feb-13 21:59 
AnswerRe: multiple inheritance Pin
Bernhard Hiller27-Feb-13 23:24
Bernhard Hiller27-Feb-13 23:24 
Aggregation.
Create a class D and put the two methods in. In the constructors of A and X, instantiate D; later on, forward the call to D.
Something like:
C#
internal class D
{
    public SomeMethodA()
    {
        //.... do some logics here
        SomeMethodB();
    }
 
    private SomeMethodB()
    {
        //.... do some logics here
    }
}

public class A : class B
{
    protected D _D;
    public A()
    {
        _D = new D();
        // some more code
    }

    public SomeMethodA()
    {
        _D.SomeMethodA();
    }
}

AnswerRe: multiple inheritance Pin
jschell28-Feb-13 10:12
jschell28-Feb-13 10:12 
AnswerRe: multiple inheritance Pin
GuyThiebaut9-Mar-13 8:14
professionalGuyThiebaut9-Mar-13 8:14 
GeneralRe: multiple inheritance Pin
jschell10-Mar-13 6:22
jschell10-Mar-13 6:22 
GeneralRe: multiple inheritance Pin
dusty_dex10-Mar-13 6:51
dusty_dex10-Mar-13 6:51 
QuestionData transfer Pin
benkazy101422-Feb-13 20:46
benkazy101422-Feb-13 20:46 
AnswerRe: Data transfer Pin
Richard MacCutchan22-Feb-13 23:06
mveRichard MacCutchan22-Feb-13 23:06 
AnswerRe: Data transfer Pin
Sandeep Mewara23-Feb-13 2:57
mveSandeep Mewara23-Feb-13 2:57 
QuestionData transfer Pin
benkazy101422-Feb-13 20:41
benkazy101422-Feb-13 20:41 
QuestionMemory management for object growing in size Pin
Dev S21-Feb-13 5:47
Dev S21-Feb-13 5:47 
AnswerRe: Memory management for object growing in size Pin
Richard MacCutchan21-Feb-13 6:35
mveRichard MacCutchan21-Feb-13 6:35 
AnswerRe: Memory management for object growing in size Pin
Bernhard Hiller27-Feb-13 23:27
Bernhard Hiller27-Feb-13 23:27 
Questionnavigation Pin
Nani Maneesh20-Feb-13 7:14
Nani Maneesh20-Feb-13 7:14 
AnswerRe: navigation Pin
jschell20-Feb-13 8:16
jschell20-Feb-13 8:16 
AnswerRe: navigation Pin
Sandeep Mewara20-Feb-13 17:08
mveSandeep Mewara20-Feb-13 17:08 
QuestionDDD and vb.net Pin
alex.barylski17-Feb-13 7:33
alex.barylski17-Feb-13 7:33 
QuestionAdvice - WCF/MSMQ or Async TCP Pin
Ger Hayden14-Feb-13 9:14
Ger Hayden14-Feb-13 9:14 
AnswerRe: Advice - WCF/MSMQ or Async TCP Pin
jschell14-Feb-13 12:25
jschell14-Feb-13 12:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.