title: how to implement a class that inherits form fstream
body: <p>Hey guys, im having problems when i want to create a class Called Files that uses fstream</p>
  
  <pre><code>#include&lt;iostream&gt;
  #include&lt;fstream&gt;
  class Files:public fstream {
      public:
         Files(const char* s,ios_base::openmode mode = ios_base::in | ios_base::out):fstream(s,ios_base::openmode mode = ios_base::in | ios_base::out)
      };
  </code></pre>
  
  <p>Does anyone know which parameters should i use on the constructor?</p>