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

Method Animal

Exercises/NoModules/Chapter 14/Soln14_01/Animals.cpp:7–9  ·  view source on GitHub ↗

Constructor

Source from the content-addressed store, hash-verified

5
6// Constructor
7Animal::Animal(std::string_view name, int weight)
8 : m_name{name}, m_weight{weight}
9{}
10
11// Identify the animal
12void Animal::who() const

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected