Click here to Skip to main content
15,887,676 members
Home / Discussions / C#
   

C#

 
GeneralAn enigma rapped up in a puzzle inside a.... Pin
Nnamdi Onyeyiri28-Aug-02 21:52
Nnamdi Onyeyiri28-Aug-02 21:52 
GeneralRe: An enigma rapped up in a puzzle inside a.... Pin
leppie28-Aug-02 22:08
leppie28-Aug-02 22:08 
GeneralRe: An enigma rapped up in a puzzle inside a.... Pin
Nnamdi Onyeyiri28-Aug-02 23:18
Nnamdi Onyeyiri28-Aug-02 23:18 
GeneralRe: An enigma rapped up in a puzzle inside a.... Pin
leppie28-Aug-02 23:58
leppie28-Aug-02 23:58 
GeneralRe: An enigma rapped up in a puzzle inside a.... Pin
Nnamdi Onyeyiri29-Aug-02 1:13
Nnamdi Onyeyiri29-Aug-02 1:13 
GeneralRe: An enigma rapped up in a puzzle inside a.... Pin
leppie29-Aug-02 1:41
leppie29-Aug-02 1:41 
GeneralRe: An enigma rapped up in a puzzle inside a.... Pin
Nnamdi Onyeyiri29-Aug-02 2:26
Nnamdi Onyeyiri29-Aug-02 2:26 
GeneralRe: An enigma rapped up in a puzzle inside a.... Pin
leppie29-Aug-02 3:04
leppie29-Aug-02 3:04 
OK I think I know what u are getting to, the answer lies in inheritance.

class Base : object //this is not necessary as u know
{
public string Name {get;set}
}

Now Base class will inherit (iow have) all of it's base class's (object or System.Object, same thing) public and protected members.

class MyClass : Base
{
public int Value {get;set;}
public void DoStuff();
}

Now MyClass will get all of Base's public and protected methods, but remember Base has inherited some members from object as well, so it gets those as well.

It can get very confusing, I know. Designing a good class hierarchy takes time, only certain aspects might be affected at each level, but in the end all the inherited properties will be "visible" from top (most specialized class) to bottom (object). Look at the Form class and see how many members are actually inherited.

So in the end there can be only one! The same object class is used everywhere in .NET.

Hope this helps Smile | :)

MYrc : A .NET IRC client with C# Plugin Capabilities. See
http://sourceforge.net/projects/myrc
for more info. Big Grin | :-D
GeneralRe: An enigma rapped up in a puzzle inside a.... Pin
Anonymous29-Aug-02 3:56
Anonymous29-Aug-02 3:56 
GeneralRe: An enigma rapped up in a puzzle inside a.... Pin
Philip Fitzsimons29-Aug-02 2:48
Philip Fitzsimons29-Aug-02 2:48 
GeneralWorking with frames in ASP .NET Pin
Mazdak28-Aug-02 21:30
Mazdak28-Aug-02 21:30 
GeneralShutdown, Restart and Logout... Pin
Eka28-Aug-02 19:59
Eka28-Aug-02 19:59 
Generalnew trouble occur,I can't get the ico in dll Pin
fftongzhi28-Aug-02 16:51
fftongzhi28-Aug-02 16:51 
GeneralRe: new trouble occur,I can't get the ico in dll Pin
James T. Johnson28-Aug-02 19:21
James T. Johnson28-Aug-02 19:21 
GeneralRe: new trouble occur,I can't get the ico in dll Pin
fftongzhi28-Aug-02 21:11
fftongzhi28-Aug-02 21:11 
QuestionCan anyone recommend a book for writing custom control in C#? Pin
Li-kai Liu (Angus)28-Aug-02 16:19
Li-kai Liu (Angus)28-Aug-02 16:19 
AnswerRe: Can anyone recommend a book for writing custom control in C#? Pin
Nnamdi Onyeyiri28-Aug-02 21:50
Nnamdi Onyeyiri28-Aug-02 21:50 
GeneralRe: Can anyone recommend a book for writing custom control in C#? Pin
Li-kai Liu (Angus)28-Aug-02 22:11
Li-kai Liu (Angus)28-Aug-02 22:11 
GeneralRe: Can anyone recommend a book for writing custom control in C#? Pin
leppie29-Aug-02 0:47
leppie29-Aug-02 0:47 
AnswerRe: Can anyone recommend a book for writing custom control in C#? Pin
Alastair Stell29-Aug-02 4:07
Alastair Stell29-Aug-02 4:07 
GeneralTree/List Hybrids Pin
candan28-Aug-02 14:46
professionalcandan28-Aug-02 14:46 
GeneralRe: Tree/List Hybrids Pin
Stephane Rodriguez.29-Aug-02 1:34
Stephane Rodriguez.29-Aug-02 1:34 
QuestionHow do you unsubscribe to an event? Pin
Rodney S. Foley28-Aug-02 14:18
Rodney S. Foley28-Aug-02 14:18 
AnswerRe: How do you unsubscribe to an event? Pin
Paul Riley28-Aug-02 18:17
Paul Riley28-Aug-02 18:17 
GeneralRe: How do you unsubscribe to an event? Pin
Rodney S. Foley28-Aug-02 19:14
Rodney S. Foley28-Aug-02 19:14 

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.