C++ Library Extensions 2022.12.09
To help learn modern C++ programming
Bird Class Referenceabstract
Inheritance diagram for Bird:
[legend]
Collaboration diagram for Bird:
[legend]

Public Member Functions

virtual void chirp ()=0
 
void species () override
 
void speak () override
 
- Public Member Functions inherited from Animal
virtual void species ()=0
 
virtual void speak ()=0
 
virtual ~Animal ()=default
 

Detailed Description

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

Member Function Documentation

◆ chirp()

virtual void Bird::chirp ( )
pure virtual

Implemented in Sparrow, Eagle, and Parrot.

Here is the caller graph for this function:

◆ speak()

void Bird::speak ( )
inlineoverridevirtual

Implements Animal.

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

Here is the call graph for this function:

◆ species()

void Bird::species ( )
inlineoverridevirtual

Implements Animal.

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


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