Virtual function: Difference between revisions

Content deleted Content added
Example: reworked C example a bit.
m Fixed the grammatical mistake "Llama's eat grass!" ('Llama is' eat grass!) in the C virtual function implementation.
Line 87:
*/
static void _Llama_eat(struct Animal *self) {
printf("<Llama at %p> Llama'sLlamas eat grass!\n", ( void* )(self));
}