Click here to Skip to main content
12,401,832 members (54,662 online)

Design and Architecture

 
AnswerRe: Messaging engine/system for cross platform development Pin
jschell7-Mar-13 8:54
memberjschell7-Mar-13 8:54 
GeneralRe: Messaging engine/system for cross platform development Pin
dexterama7-Mar-13 10:10
memberdexterama7-Mar-13 10:10 
GeneralRe: Messaging engine/system for cross platform development Pin
Eddy Vluggen7-Mar-13 22:48
mvpEddy Vluggen7-Mar-13 22:48 
GeneralRe: Messaging engine/system for cross platform development Pin
jschell8-Mar-13 12:33
memberjschell8-Mar-13 12:33 
QuestionSync file uploading between servers Pin
nitin_ion28-Feb-13 16:20
membernitin_ion28-Feb-13 16:20 
AnswerRe: Sync file uploading between servers Pin
Marco Bertschi14-Mar-13 22:14
memberMarco Bertschi14-Mar-13 22:14 
Questionmultiple inheritance Pin
ron0123427-Feb-13 21:59
memberron0123427-Feb-13 21:59 
AnswerRe: multiple inheritance Pin
Bernhard Hiller27-Feb-13 23:24
memberBernhard 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:
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
memberjschell28-Feb-13 10:12 
AnswerRe: multiple inheritance Pin
GuyThiebaut9-Mar-13 8:14
memberGuyThiebaut9-Mar-13 8:14 
GeneralRe: multiple inheritance Pin
jschell10-Mar-13 6:22
memberjschell10-Mar-13 6:22 
GeneralRe: multiple inheritance Pin
dusty_dex10-Mar-13 6:51
memberdusty_dex10-Mar-13 6:51 
QuestionData transfer Pin
benkazy101422-Feb-13 20:46
memberbenkazy101422-Feb-13 20:46 
AnswerRe: Data transfer Pin
Richard MacCutchan22-Feb-13 23:06
mvpRichard MacCutchan22-Feb-13 23:06 
AnswerRe: Data transfer Pin
Sandeep Mewara23-Feb-13 2:57
mvpSandeep Mewara23-Feb-13 2:57 
QuestionData transfer Pin
benkazy101422-Feb-13 20:41
memberbenkazy101422-Feb-13 20:41 
QuestionMemory management for object growing in size Pin
Devesh Sinha21-Feb-13 5:47
memberDevesh Sinha21-Feb-13 5:47 
AnswerRe: Memory management for object growing in size Pin
Richard MacCutchan21-Feb-13 6:35
mvpRichard MacCutchan21-Feb-13 6:35 
AnswerRe: Memory management for object growing in size Pin
Bernhard Hiller27-Feb-13 23:27
memberBernhard Hiller27-Feb-13 23:27 
Questionnavigation Pin
Nani Maneesh20-Feb-13 7:14
memberNani Maneesh20-Feb-13 7:14 
AnswerRe: navigation Pin
jschell20-Feb-13 8:16
memberjschell20-Feb-13 8:16 
AnswerRe: navigation Pin
Sandeep Mewara20-Feb-13 17:08
mvpSandeep Mewara20-Feb-13 17:08 
QuestionDDD and vb.net Pin
alex.barylski17-Feb-13 7:33
memberalex.barylski17-Feb-13 7:33 
QuestionAdvice - WCF/MSMQ or Async TCP Pin
Ger Hayden14-Feb-13 9:14
memberGer Hayden14-Feb-13 9:14 
AnswerRe: Advice - WCF/MSMQ or Async TCP Pin
jschell14-Feb-13 12:25
memberjschell14-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.


Advertise | Privacy | Mobile
Web02 | 2.8.160721.1 | Last Updated 27 Jul 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid