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

Method Animal

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

Constructor

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected