I went to an interveiw, in which the interviewer stated that MFC uses class factory method.
I don't believe this to be true, but I wasn't sure if the interviewer really believed this, or was looking to see if I would correct him.
Does any one here believes that MFC uses class factory method, and if so, can you give an example of where and how?
The interviewer also believed that by using a class factory method, you would not have to use switch/case or if statements to determine what child type to create.
All of the class factory examples I've seen still use switch statements or if conditions.
Is there someway that using the class factory method helps to avoid using switch statements or if-conditions?