rdbuf(/*Whatever type's returned by the rdbuf() method*/) method, so ofstream's version is private or protected and can't be accessed directly (but it can be accessed via ostream::rdbuf, of course)?
| ofstream inherits from ostream |
| and cout is an ostream |
| And polymorphic behaviour occurs here with the rdbuf |