Synopsis: | Pass arguments of class types by reference or pointer if the class is meant as a public base class |
Language: | C++ |
Severity Level: | 9 |
Category: | Class Interface |
Description: |
What is meant is that the function should be able to use the class interface of the passed object, which may actually be of a derived type, in a polymorphic way. This is not possible if the object is passed by value. Note that such passing by value is not even possible if the argument refers to an abstract class. |