A
Aman
why should factory methods be virtual in C++ ?
what would be the impact if they were not ?
what would be the impact if they were not ?
Aman said:why should factory methods be virtual in C++ ?
what would be the impact if they were not ?
Aman said:why should factory methods be virtual in C++ ?
what would be the impact if they were not ?
Aman said:why should factory methods be virtual in C++ ?
You'd have some more worries in your life....what would be the impact if they were not ?
Chris Theis said:Because a factory should be able to create different types of objects.
Probably you should think about the reason of using a factory once again.
You'd have some more worries in your life....
No, what about static factory methods? They can't be virtual.Gianni Mariani said:Why do you think you need a factory ?
Factories are usually used when you want to separate the implementation
from the interface.
Can you fill in the dots from there ?
Jason said:No, what about static factory methods? They can't be virtual.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.