Method (computer programming): Difference between revisions

Content deleted Content added
Undid revision 802625697 by 103.50.145.83 (talk)
Line 132:
 
C++ Example:
<syntaxhighlight lang="cpp">bnbbnb
#include <iostream>
#include <memory>
Line 155:
inst1->iAm(); // calls Super::iAm()
inst2->iAm(); // calls Sub::iAm()
}
</syntaxhighlight>
 
==See also==