Click here to Skip to main content
15,922,419 members
Home / Discussions / C#
   

C#

 
GeneralRe: TreeView Reverse Pin
JoeSox4-Dec-06 5:00
JoeSox4-Dec-06 5:00 
GeneralRe: TreeView Reverse Pin
JoeSox4-Dec-06 5:03
JoeSox4-Dec-06 5:03 
QuestionSimple formating question with ToString() Pin
NYTSX4-Dec-06 4:11
NYTSX4-Dec-06 4:11 
AnswerRe: Simple formating question with ToString() [modified] Pin
Scott Dorman4-Dec-06 4:24
professionalScott Dorman4-Dec-06 4:24 
GeneralRe: Simple formating question with ToString() Pin
NYTSX4-Dec-06 4:31
NYTSX4-Dec-06 4:31 
AnswerRe: Simple formating question with ToString() Pin
Jon Hulatt4-Dec-06 4:31
Jon Hulatt4-Dec-06 4:31 
AnswerRe: Simple formating question with ToString() Pin
Guffa4-Dec-06 4:34
Guffa4-Dec-06 4:34 
Questioninheritance : how to call child methods from parents method (or hide parents methods) Pin
miljbee4-Dec-06 3:42
miljbee4-Dec-06 3:42 
Hello all,

i am new to C# and there is something i can't get to work, so i a requesting your help !

simple code :

namespace ConsoleApplication1
{
    class Father
    {
        public Father()
        {
            System.Console.WriteLine("Build Father");
        }
        public void Something()
        {
            System.Console.WriteLine("Father : Something");
            SomethingElse();

        }
        public void SomethingElse()
        {
            System.Console.WriteLine("Father : SomethingElse");
        }

    }

    class Son : Father
    {
        public Son()
        {
            System.Console.WriteLine("Build Son");
        }

        public new void SomethingElse()
        {
            System.Console.WriteLine("Son : SomethingElse");
        }
    }
    class Program
    {
        static void Main(string[] args)
        {
            Son s = new Son();
            s.Something();            
        }
    }
}


this simple code displays "Father : SomethingElse" at the console.
How to get "Son : SomethingElse" at the console without rewriting Son.Something() ?

Many thanks for your help !
AnswerRe: inheritance : how to call child methods from parents method (or hide parents methods) Pin
S. Senthil Kumar4-Dec-06 3:57
S. Senthil Kumar4-Dec-06 3:57 
AnswerRe: inheritance : how to call child methods from parents method (or hide parents methods) Pin
Prakash Nadar4-Dec-06 4:12
Prakash Nadar4-Dec-06 4:12 
GeneralRe: inheritance : how to call child methods from parents method (or hide parents methods) Pin
miljbee4-Dec-06 20:46
miljbee4-Dec-06 20:46 
GeneralRe: inheritance : how to call child methods from parents method (or hide parents methods) Pin
Prakash Nadar4-Dec-06 22:58
Prakash Nadar4-Dec-06 22:58 
QuestionMoving Images from a folder to another folder using C# Pin
Suhas Kyadiguppi4-Dec-06 3:40
Suhas Kyadiguppi4-Dec-06 3:40 
AnswerRe: Moving Images from a folder to another folder using C# Pin
Nader Elshehabi4-Dec-06 3:45
Nader Elshehabi4-Dec-06 3:45 
QuestionRenderDvdVideoVolume question Pin
Marc Clifton4-Dec-06 3:40
mvaMarc Clifton4-Dec-06 3:40 
AnswerRe: RenderDvdVideoVolume question Pin
Eric Dahlvang4-Dec-06 8:29
Eric Dahlvang4-Dec-06 8:29 
GeneralRe: RenderDvdVideoVolume question Pin
Marc Clifton4-Dec-06 9:12
mvaMarc Clifton4-Dec-06 9:12 
GeneralRe: RenderDvdVideoVolume question Pin
Eric Dahlvang4-Dec-06 9:26
Eric Dahlvang4-Dec-06 9:26 
GeneralRe: RenderDvdVideoVolume question Pin
Marc Clifton4-Dec-06 9:38
mvaMarc Clifton4-Dec-06 9:38 
GeneralRe: RenderDvdVideoVolume question Pin
Eric Dahlvang4-Dec-06 10:06
Eric Dahlvang4-Dec-06 10:06 
GeneralRe: RenderDvdVideoVolume question Pin
Marc Clifton4-Dec-06 10:12
mvaMarc Clifton4-Dec-06 10:12 
QuestionPowerPoint effects: How to figure out a current effect name within SlideShowNextBuild event handler? Pin
wasek20014-Dec-06 2:51
wasek20014-Dec-06 2:51 
QuestionDrawString / label transparency Pin
Scalee4-Dec-06 1:47
Scalee4-Dec-06 1:47 
AnswerRe: DrawString / label transparency Pin
Nader Elshehabi4-Dec-06 3:27
Nader Elshehabi4-Dec-06 3:27 
GeneralRe: DrawString / label transparency Pin
Scalee4-Dec-06 3:36
Scalee4-Dec-06 3:36 

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.