I am trying to understand what the following code is doing and why:
class Beverage {
std::string m_description;
protected:
Beverage(std::string aDescription):m_description(aDescription){}
The part I am trying to understand is the ":m_description(aDescription){}" I don't understand what that is declaring.
Code from Olivianeacsu