MCPcopy Create free account
hub / github.com/Apress/beginning-cpp20 / Animal

Method Animal

Exercises/Modules/Chapter 15/Soln15_03/Animals.cpp:6–8  ·  view source on GitHub ↗

Constructor

Source from the content-addressed store, hash-verified

4
5// Constructor
6Animal::Animal(std::string_view name, unsigned weight)
7 : m_name{ name }, m_weight{ weight }
8{}
9
10// Return string describing the animal
11std::string Animal::who() const

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected