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

Public Member Functions

void operator() () const
 
void bark () override
 
void speak () override
 
- Public Member Functions inherited from Canis
virtual void bark ()=0
 
void species () override
 
- Public Member Functions inherited from Animal
virtual void species ()=0
 
virtual void speak ()=0
 
virtual ~Animal ()=default
 

Public Attributes

std::string m_name
 

Detailed Description

Definition at line 6 of file 16-advanced_mixin.cpp.

Member Function Documentation

◆ bark()

void Dog::bark ( )
inlineoverridevirtual

Implements Canis.

Reimplemented in JindoDog, and ChowChow.

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

Here is the caller graph for this function:

◆ operator()()

void Dog::operator() ( ) const
inline

Definition at line 10 of file 16-advanced_mixin.cpp.

◆ speak()

void Dog::speak ( )
inlineoverridevirtual

Implements Animal.

Reimplemented in JindoDog, and ChowChow.

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

Here is the call graph for this function:

Member Data Documentation

◆ m_name

std::string Dog::m_name

Definition at line 8 of file 16-advanced_mixin.cpp.


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