Go back to Richel Bilderbeek's homepage.

Go back to Richel Bilderbeek's C++ page.

 

 

 

(C++) polymorphism

 

Avoid type switching: prefer polymorphism [1].

 

 

References

[1] Herb Sutter, Andrei Alexandrescu. C++ coding standards: 101 rules, guidelines,

and best practices. ISBN: 0-32-111358-6.

Item 90: 'Avoid type switching; prefer polymorphism'.

 

 

Go back to Richel Bilderbeek's C++ page.

Go back to Richel Bilderbeek's homepage.