OK, I\'ll just post the complete program even though it has extraneous stuff and the code in question is the dead code…
#include #include
When you derive from the class you have specify
std::ifstream
to be able to find the class in the std namespace.
In the code itself you class derived from std::ifstream knows everything of ifstream.
Inheritance of ifstream:
ios_base -> ios -> istream -> ifstream