Content deleted Content added
David Levy (talk | contribs) m Pure virtual method moved to Pure virtual function |
m updated c++ link |
||
Line 1:
In [[object-oriented programming]], a '''pure virtual function''' or '''pure virtual method''' is a [[virtual function]] that has a [[declaration]] (signature), but no definition (implementation). This may be used where it does not make sense to provide a default implementation of a [[method (computer science)|method]].
In [[C
A real world example may be a class of type account. The designer may deem it 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."
|