Click here to Skip to main content
16,017,852 members
Home / Discussions / C#
   

C#

 
AnswerRe: Change color of ribbon control..... Pin
Henry Minute9-Oct-09 9:11
Henry Minute9-Oct-09 9:11 
QuestionA question on inheritance again Pin
Dewald9-Oct-09 4:45
Dewald9-Oct-09 4:45 
AnswerRe: A question on inheritance again Pin
EliottA9-Oct-09 4:48
EliottA9-Oct-09 4:48 
GeneralRe: A question on inheritance again Pin
PIEBALDconsult9-Oct-09 4:52
mvePIEBALDconsult9-Oct-09 4:52 
GeneralRe: A question on inheritance again Pin
EliottA9-Oct-09 5:01
EliottA9-Oct-09 5:01 
AnswerRe: A question on inheritance again Pin
dan!sh 9-Oct-09 4:53
professional dan!sh 9-Oct-09 4:53 
AnswerRe: A question on inheritance again Pin
PIEBALDconsult9-Oct-09 4:53
mvePIEBALDconsult9-Oct-09 4:53 
AnswerRe: A question on inheritance again Pin
Keith Barrow9-Oct-09 5:45
professionalKeith Barrow9-Oct-09 5:45 
Dewald wrote:
feel I should know the answer to this but I rarely use inheritance aggressively


Well you should, but remember to Favour Composition over inheritance[^]

The following should help with your question:


public interface IFoo
{
    void Common();
    void Different();
}

public abstract class Bar : IFoo
{
    void Common()
    {
        //Common code here
    }

    public abstract void Different();
}
  
public abstract class Baz : Bar
{
    public abstract void Different()
    {
        //Baz implmentation
    }
}

public abstract class Quux : Bar
{
    public abstract void Different()
    {
        //Quux implmentation
    }
}


but also you should look uup the new(here[^]) and virtual(here[^]) modifiers too

CCC solved so far: 2 (including a Hard One!)

QuestionHow to block a Website using c# Pin
chaithusworld9-Oct-09 4:32
chaithusworld9-Oct-09 4:32 
AnswerRe: How to block a Website using c# Pin
EliottA9-Oct-09 4:43
EliottA9-Oct-09 4:43 
GeneralRe: How to block a Website using c# Pin
Dan Neely9-Oct-09 5:57
Dan Neely9-Oct-09 5:57 
GeneralRe: How to block a Website using c# Pin
EliottA9-Oct-09 5:58
EliottA9-Oct-09 5:58 
AnswerRe: How to block a Website using c# Pin
dan!sh 9-Oct-09 4:49
professional dan!sh 9-Oct-09 4:49 
GeneralRe: How to block a Website using c# Pin
EliottA9-Oct-09 5:02
EliottA9-Oct-09 5:02 
GeneralRe: How to block a Website using c# Pin
dan!sh 9-Oct-09 5:09
professional dan!sh 9-Oct-09 5:09 
GeneralRe: How to block a Website using c# Pin
EliottA9-Oct-09 5:11
EliottA9-Oct-09 5:11 
GeneralRe: How to block a Website using c# Pin
dan!sh 9-Oct-09 5:41
professional dan!sh 9-Oct-09 5:41 
AnswerRe: How to block a Website using c# Pin
Dave Kreskowiak9-Oct-09 6:13
mveDave Kreskowiak9-Oct-09 6:13 
GeneralRe: How to block a Website using c# Pin
Md. Marufuzzaman9-Oct-09 8:10
professionalMd. Marufuzzaman9-Oct-09 8:10 
GeneralRe: How to block a Website using c# Pin
Dave Kreskowiak9-Oct-09 12:11
mveDave Kreskowiak9-Oct-09 12:11 
GeneralRe: How to block a Website using c# Pin
Md. Marufuzzaman10-Oct-09 3:35
professionalMd. Marufuzzaman10-Oct-09 3:35 
QuestionChange windows options - Hide actions buttons Pin
missceline339-Oct-09 4:18
missceline339-Oct-09 4:18 
AnswerRe: Change windows options - Hide actions buttons Pin
OriginalGriff9-Oct-09 4:27
mveOriginalGriff9-Oct-09 4:27 
GeneralRe: Change windows options - Hide actions buttons Pin
missceline339-Oct-09 4:31
missceline339-Oct-09 4:31 
GeneralRe: Change windows options - Hide actions buttons Pin
OriginalGriff9-Oct-09 4:43
mveOriginalGriff9-Oct-09 4:43 

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.