inheritance and file I/O

Jun 13, 2009 at 5:33pm
is it ok if i pass a file name to base class constructor to open a text file and then perform operations on that file in the derived class object?
Jun 13, 2009 at 5:59pm
Absolutely. As long as you can access the fstream object in the derived class (if, say, it was protected in the base class).
Topic archived. No new replies allowed.