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

Pure abstract class acting as an interface contract. More...

Inheritance diagram for ISpeaker:

Public Member Functions

virtual void speak ()=0
 Emits this speaker's sound.
virtual ~ISpeaker ()=default

Detailed Description

Pure abstract class acting as an interface contract.

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

Constructor & Destructor Documentation

◆ ~ISpeaker()

virtual ISpeaker::~ISpeaker ( )
virtualdefault

Member Function Documentation

◆ speak()

virtual void ISpeaker::speak ( )
pure virtual

Emits this speaker's sound.

Implemented in InterfaceCat, and InterfaceDog.


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