Click here to Skip to main content

C / C++ / MFC

 
GeneralRe: system() in MFC PinmemberAlbert Holguin24-Feb-13 8:38 
QuestionDoubt in c++ PinmemberJackkrishjk21-Feb-13 1:17 
AnswerRe: Doubt in c++ PinmvpRichard MacCutchan21-Feb-13 2:26 
AnswerRe: Doubt in c++ PinmemberAlan Balkany21-Feb-13 5:33 
They allow polymorphism, where derived classes can provide different behavior for the same function calls.
 
For example, a Shape class can have a virtual getArea () method.
 
Derived classes (like Circle, Square, etc...) will provide different implementations of getArea (), which use different formulas for the area calculation. Thus, you can call getArea () on a Shape object, regardless of which concrete derived class it represents, and you'll get the correct area.
GeneralRe: Doubt in c++ PinmemberSCProrammer21-Feb-13 6:31 
AnswerRe: Doubt in c++ PinmemberDavidCrow21-Feb-13 6:56 
AnswerRe: Doubt in c++ PinmemberMaximilien21-Feb-13 9:28 
QuestionTracing Exceptions Originated from Other Application PinmemberShubha Debnath21-Feb-13 1:05 
AnswerRe: Tracing Exceptions Originated from Other Application PinmemberAlan Balkany21-Feb-13 5:35 
GeneralRe: Tracing Exceptions Originated from Other Application PinmemberShubha Debnath22-Feb-13 1:29 

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
Web01 | 2.8.150123.1 | Last Updated 23 Jan 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid