Inheritance vs Interface Polymorphism (C++)
Doxygen docs for the C++ implementation
Loading...
Searching...
No Matches
Dog Class Reference

Animal subclass that overrides speak() to bark. More...

Inheritance diagram for Dog:
Collaboration diagram for Dog:

Public Member Functions

void speak () override
 Emits the generic animal sound.
Public Member Functions inherited from Animal
virtual ~Animal ()=default

Detailed Description

Animal subclass that overrides speak() to bark.

Definition at line 27 of file C++ Implimentation.cpp.

Member Function Documentation

◆ speak()

void Dog::speak ( )
inlineoverridevirtual

Emits the generic animal sound.

Reimplemented from Animal.

Definition at line 29 of file C++ Implimentation.cpp.


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