Click here to Skip to main content

Design and Architecture

 
AnswerRe: Messaging engine/system for cross platform development Pinmemberjschell7-Mar-13 8:54 
GeneralRe: Messaging engine/system for cross platform development Pinmemberdexterama7-Mar-13 10:10 
GeneralRe: Messaging engine/system for cross platform development PinmvpEddy Vluggen7-Mar-13 22:48 
GeneralRe: Messaging engine/system for cross platform development Pinmemberjschell8-Mar-13 12:33 
QuestionSync file uploading between servers Pinmembernitin_ion28-Feb-13 16:20 
AnswerRe: Sync file uploading between servers PinmemberMarco Bertschi14-Mar-13 22:14 
Questionmultiple inheritance Pinmemberron0123427-Feb-13 21:59 
AnswerRe: multiple inheritance PinmemberBernhard 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 Pinmemberjschell28-Feb-13 10:12 
AnswerRe: multiple inheritance PinmemberGuyThiebaut9-Mar-13 8:14 
GeneralRe: multiple inheritance Pinmemberjschell10-Mar-13 6:22 
GeneralRe: multiple inheritance Pinmemberdusty_dex10-Mar-13 6:51 
QuestionData transfer Pinmemberbenkazy101422-Feb-13 20:46 
AnswerRe: Data transfer PinmvpRichard MacCutchan22-Feb-13 23:06 
AnswerRe: Data transfer PinmvpSandeep Mewara23-Feb-13 2:57 
QuestionData transfer Pinmemberbenkazy101422-Feb-13 20:41 
QuestionMemory management for object growing in size PinmemberDevesh Sinha21-Feb-13 5:47 
AnswerRe: Memory management for object growing in size PinmvpRichard MacCutchan21-Feb-13 6:35 
AnswerRe: Memory management for object growing in size PinmemberBernhard Hiller27-Feb-13 23:27 
Questionnavigation PinmemberNani Maneesh20-Feb-13 7:14 
AnswerRe: navigation Pinmemberjschell20-Feb-13 8:16 
AnswerRe: navigation PinmvpSandeep Mewara20-Feb-13 17:08 
QuestionDDD and vb.net Pinmemberalex.barylski17-Feb-13 7:33 
QuestionAdvice - WCF/MSMQ or Async TCP PinmemberGer Hayden14-Feb-13 9:14 
AnswerRe: Advice - WCF/MSMQ or Async TCP Pinmemberjschell14-Feb-13 12:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    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
Web03 | 2.8.140916.1 | Last Updated 18 Sep 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid