Inheritance vs Interface Polymorphism (C)
Doxygen docs for the C implementation
Loading...
Searching...
No Matches
AbstractAnimal Struct Reference

Abstract base "class" combining shared state and an abstract speak function pointer. More...

Public Attributes

int age
void(* speak )(struct AbstractAnimal *)

Detailed Description

Abstract base "class" combining shared state and an abstract speak function pointer.

Definition at line 75 of file C Implimentation.c.

Member Data Documentation

◆ age

int AbstractAnimal::age

Structural state isolated inside the struct footprint.

Definition at line 76 of file C Implimentation.c.

◆ speak

void(* AbstractAnimal::speak) (struct AbstractAnimal *)

Function pointer for the abstract method.

Definition at line 77 of file C Implimentation.c.


The documentation for this struct was generated from the following file: