title: Does RTTI work with final?
body: <p>I am learning C++11 via C++11 FAQ from Stroustrup. I have a question.</p>
  
  <p>If a virtual function is defined as final in a class, does RTTI (dynamic_cast and typeid) still work on its derived class?</p>
  
  <hr>
  
  <p>@MSalters: My intention was, let say:</p>
  
  <pre><code>struct A {
      virtual void f() final; // only one virtual function, but final
  };
  struct B : A {
  };
  A* pa = new B;
  B* pb = dynamic_cast&lt;B*&gt;(pa); // would this work? I guess it applies to typeid as well.
  </code></pre>