|
Inheritance vs Interface Polymorphism (C)
Doxygen docs for the C implementation
|
Abstract base "class" combining shared state and an abstract speak function pointer. More...
Public Attributes | |
| int | age |
| void(* | speak )(struct AbstractAnimal *) |
Abstract base "class" combining shared state and an abstract speak function pointer.
Definition at line 75 of file C Implimentation.c.
| int AbstractAnimal::age |
Structural state isolated inside the struct footprint.
Definition at line 76 of file C Implimentation.c.
| void(* AbstractAnimal::speak) (struct AbstractAnimal *) |
Function pointer for the abstract method.
Definition at line 77 of file C Implimentation.c.