cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
is it necessary to include base class in
is it necessary to include base class in the header and or .cpp file of derived class?
Mar 28, 2013 at 2:34pm UTC
Rehan FASTian
(168)
...
Mar 28, 2013 at 2:48pm UTC
writetonsharma
(1461)
Is there any harm if you include it ?
Mar 28, 2013 at 2:48pm UTC
mutexe
(2372)
you could try this :)
Mar 28, 2013 at 2:50pm UTC
Rehan FASTian
(168)
Is there any harm if you include it ?
lol :)
Mar 28, 2013 at 2:53pm UTC
mutexe
(2372)
stick the include in the header
Mar 28, 2013 at 2:54pm UTC
Rehan FASTian
(168)
I think in .cpp of derived class, it's not necessary, and in header file of derived class it's mandatory to include header file of base class.
Topic archived. No new replies allowed.