V
vivekian
Hi,
Have this following hierarchy which am implementing for a networking
program. The base class 'ASocket' is the base class from which
'AListener' and 'ATalker' inherit . None of the functions in the
derived classes would override functions from the base class. The
derived classes would extend the base class. A couple of doubts :
1. Should the functions in the base class be declared virtual ?
2. Is this a good way to go about things or should one make ASocket an
abstract base class ? ( thinking in terms of interface based
programming )
3. The Inheritance topic in C++ FAQ slightly confuses me .. It talks a
lot about protected inheritance .. should that be a concern for such a
situation.
Thanks in advance.
Have this following hierarchy which am implementing for a networking
program. The base class 'ASocket' is the base class from which
'AListener' and 'ATalker' inherit . None of the functions in the
derived classes would override functions from the base class. The
derived classes would extend the base class. A couple of doubts :
1. Should the functions in the base class be declared virtual ?
2. Is this a good way to go about things or should one make ASocket an
abstract base class ? ( thinking in terms of interface based
programming )
3. The Inheritance topic in C++ FAQ slightly confuses me .. It talks a
lot about protected inheritance .. should that be a concern for such a
situation.
Thanks in advance.