Click here to Skip to main content
15,890,185 members
Home / Discussions / C#
   

C#

 
QuestionWeird crashes Pin
Bekjong31-Oct-06 4:44
Bekjong31-Oct-06 4:44 
AnswerRe: Weird crashes Pin
Rob Graham31-Oct-06 5:28
Rob Graham31-Oct-06 5:28 
GeneralRe: Weird crashes Pin
Bekjong31-Oct-06 5:34
Bekjong31-Oct-06 5:34 
GeneralRe: Weird crashes Pin
Rob Graham1-Nov-06 4:46
Rob Graham1-Nov-06 4:46 
GeneralRe: Weird crashes Pin
Bekjong1-Nov-06 6:03
Bekjong1-Nov-06 6:03 
AnswerRe: Weird crashes Pin
sam#31-Oct-06 5:28
sam#31-Oct-06 5:28 
GeneralRe: Weird crashes Pin
Bekjong31-Oct-06 5:36
Bekjong31-Oct-06 5:36 
Questionreferencing a member of a parent class Pin
grivix31-Oct-06 4:39
grivix31-Oct-06 4:39 
Hi all,

In other languages we can use the term "parent" for referencing a member of a parent class. C# doesn't have it. In the following code, I post an example of this question.

using System;
   
namespace NS
{
   public class A
   {
      public static void Main() {
         B b = new B();
         C c = new C();
		
         c.mc();
      }
   }
   
   public class B
   {
      public void mb() {
         Console.WriteLine("I'm in class B");
         Console.Read();
      }
   }
   
   public class C
   {
      public void mc() {
         // How do you call from here 
         // the method mb() of the class B ?
         
         
      }
   }
}

Any idea to do it?

Let the life to be fluent in you. SER

AnswerRe: referencing a member of a parent class Pin
Colin Angus Mackay31-Oct-06 4:56
Colin Angus Mackay31-Oct-06 4:56 
GeneralRe: referencing a member of a parent class Pin
Alaric_31-Oct-06 6:05
professionalAlaric_31-Oct-06 6:05 
GeneralRe: referencing a member of a parent class Pin
Colin Angus Mackay31-Oct-06 6:11
Colin Angus Mackay31-Oct-06 6:11 
GeneralRe: referencing a member of a parent class Pin
grivix31-Oct-06 6:22
grivix31-Oct-06 6:22 
GeneralRe: referencing a member of a parent class Pin
grivix31-Oct-06 6:24
grivix31-Oct-06 6:24 
AnswerRe: referencing a member of a parent class Pin
Colin Angus Mackay31-Oct-06 6:24
Colin Angus Mackay31-Oct-06 6:24 
GeneralRe: referencing a member of a parent class Pin
grivix31-Oct-06 6:28
grivix31-Oct-06 6:28 
QuestionNeed XML FAQs Pin
AR Reddy31-Oct-06 4:22
AR Reddy31-Oct-06 4:22 
AnswerRe: Need XML FAQs Pin
led mike31-Oct-06 6:15
led mike31-Oct-06 6:15 
QuestionNewbie: Stupid question about forms & variables... Pin
Phillip Hodges31-Oct-06 4:09
Phillip Hodges31-Oct-06 4:09 
AnswerRe: Newbie: Stupid question about forms & variables... Pin
V.31-Oct-06 4:32
professionalV.31-Oct-06 4:32 
AnswerRe: Newbie: Stupid question about forms & variables... Pin
Guffa31-Oct-06 4:33
Guffa31-Oct-06 4:33 
AnswerRe: Newbie: Stupid question about forms & variables... Pin
Stefan Troschuetz31-Oct-06 4:57
Stefan Troschuetz31-Oct-06 4:57 
GeneralRe: Newbie: Stupid question about forms & variables... Pin
Colin Angus Mackay31-Oct-06 4:58
Colin Angus Mackay31-Oct-06 4:58 
AnswerRe: Newbie: Stupid question about forms & variables... Pin
Colin Angus Mackay31-Oct-06 4:58
Colin Angus Mackay31-Oct-06 4:58 
QuestionHowTo: get version number? Pin
Ariadne31-Oct-06 3:51
Ariadne31-Oct-06 3:51 
AnswerRe: HowTo: get version number? Pin
Russell Jones31-Oct-06 5:04
Russell Jones31-Oct-06 5:04 

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.