Click here to Skip to main content
15,888,286 members
Home / Discussions / C#
   

C#

 
AnswerRe: A Not-So-Neat Balancing Act Pin
Ravi Bhavnani11-Mar-06 16:05
professionalRavi Bhavnani11-Mar-06 16:05 
GeneralRe: A Not-So-Neat Balancing Act Pin
IceWater4211-Mar-06 16:20
IceWater4211-Mar-06 16:20 
QuestionTabpage : Scoll without scroll bar Pin
2hdass11-Mar-06 15:04
2hdass11-Mar-06 15:04 
QuestionIcons Pin
Sean8911-Mar-06 13:19
Sean8911-Mar-06 13:19 
AnswerRe: Icons Pin
Ravi Bhavnani11-Mar-06 13:42
professionalRavi Bhavnani11-Mar-06 13:42 
GeneralRe: Icons Pin
Sean8911-Mar-06 15:03
Sean8911-Mar-06 15:03 
Questionmobile agent Pin
karthik.N.Rao11-Mar-06 8:05
karthik.N.Rao11-Mar-06 8:05 
QuestionC# Static Inheritance Question Pin
tgiphil11-Mar-06 7:29
tgiphil11-Mar-06 7:29 
Hi! I have a newbie question: How do I get this code to compile and output "derivedclass"? The classes may only have static methods.

class BaseClass
{
static string _name = "baseclass";

static string GetName()
{
return _name;
}
}

class DerivedClass : BaseClass
{
static string _name = "derivedclass";
}


Console.WriteLine(DerivedClass.GetName());

I'm stumped so any help would be appreciated.


- Phil
AnswerRe: C# Static Inheritance Question Pin
Daniel Grunwald11-Mar-06 8:21
Daniel Grunwald11-Mar-06 8:21 
GeneralRe: C# Static Inheritance Question Pin
tgiphil12-Mar-06 5:05
tgiphil12-Mar-06 5:05 
Questiontransferring global variable values from one form to another Pin
freak200411-Mar-06 5:46
freak200411-Mar-06 5:46 
AnswerRe: transferring global variable values from one form to another Pin
sa_keles11-Mar-06 7:35
sa_keles11-Mar-06 7:35 
GeneralRe: transferring global variable values from one form to another Pin
freak200412-Mar-06 21:42
freak200412-Mar-06 21:42 
GeneralRe: transferring global variable values from one form to another Pin
sa_keles12-Mar-06 22:11
sa_keles12-Mar-06 22:11 
GeneralRe: transferring global variable values from one form to another Pin
freak200413-Mar-06 3:28
freak200413-Mar-06 3:28 
GeneralRe: transferring global variable values from one form to another Pin
sa_keles13-Mar-06 7:29
sa_keles13-Mar-06 7:29 
QuestionDLL Problems Pin
cjengler11-Mar-06 3:01
cjengler11-Mar-06 3:01 
AnswerRe: DLL Problems Pin
CWIZO11-Mar-06 4:04
CWIZO11-Mar-06 4:04 
AnswerRe: DLL Problems Pin
cjengler11-Mar-06 6:46
cjengler11-Mar-06 6:46 
QuestionFind Host name from IP Pin
J512198211-Mar-06 1:43
J512198211-Mar-06 1:43 
AnswerRe: Find Host name from IP Pin
Dave Kreskowiak11-Mar-06 4:39
mveDave Kreskowiak11-Mar-06 4:39 
QuestionA remoting problem unresolved for days :( Pin
rickywong11-Mar-06 1:09
rickywong11-Mar-06 1:09 
QuestionLogin window for cyber cafe SW Pin
amit_for_net11-Mar-06 0:33
amit_for_net11-Mar-06 0:33 
AnswerRe: Login window for cyber cafe SW Pin
da vinci coder11-Mar-06 1:49
da vinci coder11-Mar-06 1:49 
QuestionLetting users write methods Pin
dennizsoftware.se10-Mar-06 21:12
dennizsoftware.se10-Mar-06 21:12 

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.