Polymorphic Behaviour
Continuing the relationship between references and pointers (in C++ context), the former exhibit polymorphic capabilities, as one might expect:
#includeThe source above is valid C++ and generates the following output:
This is class A
This is class B
Read more about this topic: Reference (C++)
Famous quotes containing the word behaviour:
“I cannot be much pleased without an appearance of truth; at least of possibilityI wish the history to be natural though the sentiments are refined; and the characters to be probable, though their behaviour is excelling.”
—Frances Burney (17521840)
Related Subjects
Related Phrases
Related Words