Click here to Skip to main content
15,899,679 members
Home / Discussions / C#
   

C#

 
GeneralRe: Access Modifier, protect child classes constructor Pin
Colin Angus Mackay7-Jan-09 13:42
Colin Angus Mackay7-Jan-09 13:42 
GeneralRe: Access Modifier, protect child classes constructor Pin
DaveyM697-Jan-09 13:48
professionalDaveyM697-Jan-09 13:48 
GeneralRe: Access Modifier, protect child classes constructor Pin
Luc Pattyn7-Jan-09 14:38
sitebuilderLuc Pattyn7-Jan-09 14:38 
GeneralRe: Access Modifier, protect child classes constructor [modified] Pin
Dragonfly_Lee7-Jan-09 18:11
Dragonfly_Lee7-Jan-09 18:11 
GeneralRe: Access Modifier, protect child classes constructor Pin
Luc Pattyn7-Jan-09 18:15
sitebuilderLuc Pattyn7-Jan-09 18:15 
GeneralRe: Access Modifier, protect child classes constructor Pin
N a v a n e e t h7-Jan-09 18:17
N a v a n e e t h7-Jan-09 18:17 
GeneralRe: Access Modifier, protect child classes constructor Pin
Dragonfly_Lee7-Jan-09 20:36
Dragonfly_Lee7-Jan-09 20:36 
GeneralRe: Access Modifier, protect child classes constructor Pin
DaveyM698-Jan-09 3:01
professionalDaveyM698-Jan-09 3:01 
I need the child to be accessible but not instanciatable (is that a word?) apart from by the parent - so private won't cut it here unfortunately.

Mark gave a good solution below by having two classes for the child, a public abstract one and a private one derived from the abstract.

Dave
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)

GeneralRe: Access Modifier, protect child classes constructor Pin
S. Senthil Kumar7-Jan-09 19:24
S. Senthil Kumar7-Jan-09 19:24 
GeneralRe: Access Modifier, protect child classes constructor Pin
Dragonfly_Lee7-Jan-09 20:26
Dragonfly_Lee7-Jan-09 20:26 
AnswerRe: Access Modifier, protect child classes constructor Pin
Mark Churchill7-Jan-09 18:43
Mark Churchill7-Jan-09 18:43 
GeneralRe: Access Modifier, protect child classes constructor Pin
DaveyM698-Jan-09 2:46
professionalDaveyM698-Jan-09 2:46 
QuestionCombo Box Text when working in multilingual program Pin
belzer7-Jan-09 9:41
belzer7-Jan-09 9:41 
AnswerRe: Combo Box Text when working in multilingual program Pin
CPallini7-Jan-09 9:54
mveCPallini7-Jan-09 9:54 
GeneralRe: Combo Box Text when working in multilingual program Pin
belzer7-Jan-09 9:59
belzer7-Jan-09 9:59 
AnswerRe: Combo Box Text when working in multilingual program Pin
Rutvik Dave7-Jan-09 10:07
professionalRutvik Dave7-Jan-09 10:07 
GeneralRe: Combo Box Text when working in multilingual program Pin
belzer7-Jan-09 10:10
belzer7-Jan-09 10:10 
GeneralRe: Combo Box Text when working in multilingual program Pin
Colin Angus Mackay7-Jan-09 10:16
Colin Angus Mackay7-Jan-09 10:16 
AnswerRe: Combo Box Text when working in multilingual program Pin
Colin Angus Mackay7-Jan-09 10:13
Colin Angus Mackay7-Jan-09 10:13 
GeneralRe: Combo Box Text when working in multilingual program Pin
belzer7-Jan-09 10:17
belzer7-Jan-09 10:17 
AnswerRe: Combo Box Text when working in multilingual program Pin
DaveyM697-Jan-09 10:16
professionalDaveyM697-Jan-09 10:16 
GeneralRe: Combo Box Text when working in multilingual program Pin
Luc Pattyn7-Jan-09 10:41
sitebuilderLuc Pattyn7-Jan-09 10:41 
QuestionSqlDataAdapter.Fill Pin
CodingYoshi7-Jan-09 8:37
CodingYoshi7-Jan-09 8:37 
AnswerRe: SqlDataAdapter.Fill Pin
Wendelius7-Jan-09 8:45
mentorWendelius7-Jan-09 8:45 
GeneralRe: SqlDataAdapter.Fill Pin
CodingYoshi7-Jan-09 9:51
CodingYoshi7-Jan-09 9:51 

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.