¡@

Home 

c++ Programming Glossary: deriveda

Reflective Factory in C++ Derived class unable to access protected methods?

http://stackoverflow.com/questions/10193280/reflective-factory-in-c-derived-class-unable-to-access-protected-methods

Factory public AbstractFactory Base public Factory m_map DerivedA AbstractFactory createInstance DerivedA m_map DerivedB AbstractFactory.. Factory m_map DerivedA AbstractFactory createInstance DerivedA m_map DerivedB AbstractFactory createInstance DerivedB int main.. DerivedB int main Factory factory Base a factory.Create DerivedA DerivedA aa dynamic_cast DerivedA a etc.. I got this working..

Are static variables in a base class shared by all derived classes?

http://stackoverflow.com/questions/1390913/are-static-variables-in-a-base-class-shared-by-all-derived-classes

have something like class Base static int staticVar class DerivedA public Base class DerivedB public Base Will both DerivedA and.. DerivedA public Base class DerivedB public Base Will both DerivedA and DerivedB share the same staticVar or will they each get..

Is there a way to instantiate objects from a string holding their class name?

http://stackoverflow.com/questions/582331/is-there-a-way-to-instantiate-objects-from-a-string-holding-their-class-name

their class name I have a file Base.h class Base class DerivedA public Base class DerivedB public Base etc... and another file.. msClassName sClassName Base Create if msClassName DerivedA return new DerivedA else if msClassName DerivedB return new.. sClassName Base Create if msClassName DerivedA return new DerivedA else if msClassName DerivedB return new DerivedB else if etc.....