Click here to Skip to main content
       

C#

 
AnswerRe: Specialized List Sorting question [modified] PinmemberRichard Deeming21-Nov-12 8:03 
AnswerRe: Specialized List Sorting question PinmemberSledgeHammer0121-Nov-12 8:06 
AnswerRe: Specialized List Sorting question PinmemberRichard Deeming21-Nov-12 8:32 
AnswerRe: Specialized List Sorting question [modified] PinmemberPIEBALDconsult21-Nov-12 8:57 
AnswerRe: Specialized List Sorting question PinmemberBobJanova21-Nov-12 22:50 
QuestionWinForms Class Design PinmemberMember 961929521-Nov-12 6:43 
AnswerRe: WinForms Class Design PinmvpRichard MacCutchan21-Nov-12 7:15 
GeneralRe: WinForms Class Design PinmemberMatt U.21-Nov-12 8:16 
Not sure if the OP noticed but I wanted to point this out. In Richard's response, he changed the access modifier for "string staffName" to "private" rather than "protected". Since the "StaffName" property is handled entirely by the base class, the derived types do not need to see the "staffName" member. "private" means that the object is only accessible to the class or struct defining it. "protected" would mean that the derived types could see the member as well.
 
EDIT:
 
Richard, I have a question about this now. Haha. What if the programmer decided to create a new class deriving from 'Staff' and the new class needed its own implementation of 'StaffName'? Would it be better to create a new 'private' field in the derived class? Or should 'private staffName' be changed to 'protected' in the base class? (I'm guessing create its own in the new class because none of the other derived types need it. But I wanted to clarify.)
djj55: Nice but may have a permission problem
Pete O'Hanlon: He has my permission to run it.

GeneralRe: WinForms Class Design PinmvpRichard MacCutchan21-Nov-12 8:56 
GeneralRe: WinForms Class Design PinmemberMatt U.21-Nov-12 8:59 
GeneralRe: WinForms Class Design PinmvpRichard MacCutchan21-Nov-12 9:06 
GeneralRe: WinForms Class Design PinmemberMatt U.21-Nov-12 9:21 
GeneralRe: WinForms Class Design PinmemberPIEBALDconsult21-Nov-12 10:27 
AnswerRe: WinForms Class Design PinmemberPIEBALDconsult21-Nov-12 9:07 
QuestionUplaod Article To Codeproject PingroupkatlegoEmmnanuelNkosi21-Nov-12 3:44 
AnswerRe: Uplaod Article To Codeproject PinmemberPIEBALDconsult21-Nov-12 3:48 
AnswerRe: Uplaod Article To Codeproject PinmvpRichard MacCutchan21-Nov-12 4:34 
QuestionPrint Crystal Report in c# Using Access Database? Pinmemberkashifjaat21-Nov-12 2:09 
QuestionGenerate Morse Code Sound Pinmemberlong dao21-Nov-12 1:24 
AnswerRe: Generate Morse Code Sound PinprotectorPete O'Hanlon21-Nov-12 1:45 
GeneralRe: Generate Morse Code Sound Pinmemberlong dao21-Nov-12 1:54 
GeneralRe: Generate Morse Code Sound PinprotectorPete O'Hanlon21-Nov-12 2:05 
QuestionKeeps returning NullReferenceException [modified] PinmemberMacUseless20-Nov-12 23:08 
SuggestionRe: Keeps returning NullReferenceException PinmemberV.21-Nov-12 3:25 
GeneralRe: Keeps returning NullReferenceException PinmemberMacUseless21-Nov-12 3:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web03 | 2.8.140415.2 | Last Updated 18 Apr 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid