Pure virtual function: Difference between revisions

Content deleted Content added
copy edit
m {{compu-lang-stub}}
Line 5:
A real world example may be a class of type account. The designer may decide it to be undesirable to provide a default implementation of a 'Calculate Interest' method, instead leaving the actual implementation to the designers of the derived classes 'Current Account' and 'Savings Account'.
 
{{compu-lang-stub}}
 
[[Category: Object-oriented programming]]