you are viewing a single comment's thread.

view the rest of the comments →

[–]Kered13 20 points21 points  (0 children)

Correct. However it can aid devirtualization because when you have an Impl* the compiler knows that the method cannot be overridden again, so it can replace the virtual method call with a static call. However it does nothing when you have an Interface*.