C++ Library Extensions 2022.12.09
To help learn modern C++ programming
27-dynamic_polymorphism.cpp File Reference
#include <tpf_output.hpp>
Include dependency graph for 27-dynamic_polymorphism.cpp:

Go to the source code of this file.

Classes

class  Animal
 
class  Canis
 
class  Wolf
 
class  Dog
 
class  JindoDog
 
class  ChowChow
 
class  Bird
 
class  Sparrow
 
class  Eagle
 
class  Parrot
 

Functions

void animal_speak (Animal &my_pet)
 
void canis_bark (Canis &my_canis)
 
void bird_chirp (Bird &my_bird)
 
void test_animals ()
 
int main ()
 

Variables

tpf::sstream stream
 
auto endl = tpf::endl
 

Function Documentation

◆ animal_speak()

void animal_speak ( Animal my_pet)

Definition at line 171 of file 27-dynamic_polymorphism.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ bird_chirp()

void bird_chirp ( Bird my_bird)

Definition at line 181 of file 27-dynamic_polymorphism.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ canis_bark()

void canis_bark ( Canis my_canis)

Definition at line 176 of file 27-dynamic_polymorphism.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ main()

int main ( )

Definition at line 213 of file 27-dynamic_polymorphism.cpp.

Here is the call graph for this function:

◆ test_animals()

void test_animals ( )

Definition at line 186 of file 27-dynamic_polymorphism.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ endl

auto endl = tpf::endl

Definition at line 4 of file 27-dynamic_polymorphism.cpp.

◆ stream

tpf::sstream stream

Definition at line 3 of file 27-dynamic_polymorphism.cpp.