Virtual Functions: Yet Another New Idea
In C++, each computational object is characterized by the properties that define the type of the object. The object is denoted by its name (identifier), and the type is associated with this identifier. Throughout the book, this association was taking place when I specified the object type in object declarations or definitions. This was true both of program variables and of program functions.
At the declaration or definition of a variable, the source code must make the commitment and specify the type of the computational object. This association between the object name and its type cannot be broken during program execution. The program can define other computational objects using the same identifier and ...
Get Core C++ A Software Engineering Approach now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.