Click here to Skip to main content
15,890,690 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: std::find [By any chance my question is not clear?] Pin
Rajkumar R16-Mar-08 22:58
Rajkumar R16-Mar-08 22:58 
GeneralCompilation Firewalls Pin
George_George15-Mar-08 2:57
George_George15-Mar-08 2:57 
GeneralRe: Compilation Firewalls Pin
Maximilien15-Mar-08 3:34
Maximilien15-Mar-08 3:34 
GeneralRe: Compilation Firewalls Pin
George_George15-Mar-08 3:55
George_George15-Mar-08 3:55 
QuestionWindows Services: User account management Pin
tony_Udz15-Mar-08 2:47
tony_Udz15-Mar-08 2:47 
Questionwhy private virtual function? Pin
George_George15-Mar-08 2:11
George_George15-Mar-08 2:11 
AnswerRe: why private virtual function? Pin
Vasudevan Deepak Kumar15-Mar-08 3:03
Vasudevan Deepak Kumar15-Mar-08 3:03 
GeneralRe: why private virtual function? Pin
George_George16-Mar-08 0:01
George_George16-Mar-08 0:01 
Thanks Vasudevan,


Great link! Especially this one, http://www.gotw.ca/publications/mill18.htm[^]

I have a further question, it is always mentioned "preconditions and postconditions", like in the above link, what means "preconditions and postconditions" in the article?

--------------------
First, note that the base class is now in complete control of its interface and policy, and can enforce interface preconditions and postconditions, insert instrumentation, and do any similar work all in a single convenient reusable place - the nonvirtual interface function. This promotes good class design because it lets the base class enforce the substitutability compliance of derived classes in accord with the Liskov Substitution Principle[3], to whatever extent enforcement makes sense. If efficiency is an issue, the base class can elect to check certain kinds of pre- and postconditions only in a debug mode, for example via a non-debug "release" build that completely removes the checking code from the executable image, or via a configurable debug mode that suppresses selected checking code at runtime.
--------------------


regards,
George
AnswerRe: why private virtual function? Pin
Maximilien15-Mar-08 3:36
Maximilien15-Mar-08 3:36 
GeneralRe: why private virtual function? Pin
George_George15-Mar-08 3:54
George_George15-Mar-08 3:54 
GeneralRe: why private virtual function? Pin
Maximilien15-Mar-08 7:15
Maximilien15-Mar-08 7:15 
GeneralRe: why private virtual function? Pin
George_George16-Mar-08 0:16
George_George16-Mar-08 0:16 
AnswerRe: why private virtual function? Pin
Nemanja Trifunovic15-Mar-08 4:38
Nemanja Trifunovic15-Mar-08 4:38 
GeneralRe: why private virtual function? Pin
_808615-Mar-08 7:25
_808615-Mar-08 7:25 
GeneralRe: why private virtual function? Pin
George_George16-Mar-08 0:13
George_George16-Mar-08 0:13 
GeneralRe: why private virtual function? Pin
_808617-Mar-08 6:42
_808617-Mar-08 6:42 
GeneralRe: why private virtual function? Pin
George_George16-Mar-08 0:05
George_George16-Mar-08 0:05 
AnswerRe: why private virtual function? Pin
Rajesh R Subramanian15-Mar-08 5:29
professionalRajesh R Subramanian15-Mar-08 5:29 
GeneralRe: why private virtual function? Pin
George_George16-Mar-08 0:12
George_George16-Mar-08 0:12 
QuestionHOW TO ADD PROJECT INTO WORKSPACE Pin
bala_potty15-Mar-08 1:54
bala_potty15-Mar-08 1:54 
Generalabout parameter passing Pin
savitri15-Mar-08 1:07
savitri15-Mar-08 1:07 
JokeRe: about parameter passing Pin
_808615-Mar-08 7:33
_808615-Mar-08 7:33 
GeneralRe: about parameter passing Pin
Rajkumar R15-Mar-08 10:44
Rajkumar R15-Mar-08 10:44 
GeneralRe: about parameter passing Pin
savitri16-Mar-08 21:46
savitri16-Mar-08 21:46 
GeneralRe: about parameter passing Pin
_808617-Mar-08 6:44
_808617-Mar-08 6:44 

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.