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

Method Animal

Exercises/Modules/Chapter 15/Soln15_05/Animals.cpp:17–19  ·  view source on GitHub ↗

Constructor

Source from the content-addressed store, hash-verified

15
16// Constructor
17Animal::Animal(std::string_view name, unsigned weight)
18 : m_name{ name }, m_weight{ weight }
19{}
20
21// Return string describing the animal
22std::string Animal::who() const

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected