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

Method Sheep

Exercises/NoModules/Chapter 15/Soln15_04/Animals.cpp:33–36  ·  view source on GitHub ↗

Sheep constructors

Source from the content-addressed store, hash-verified

31
32// Sheep constructors
33Sheep::Sheep(std::string_view name, unsigned weight)
34 : Sheep{name, weight, static_cast<unsigned>(0.1 * weight)}
35{
36}
37
38Sheep::Sheep(std::string_view name, unsigned weight, unsigned wool)
39 : Animal{name, weight}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected