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

Method Sheep

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

Sheep constructors

Source from the content-addressed store, hash-verified

15
16// Sheep constructors
17Sheep::Sheep(std::string_view name, unsigned weight)
18 : Sheep{name, weight, static_cast<unsigned>(0.1 * weight)}
19{
20}
21
22Sheep::Sheep(std::string_view name, unsigned weight, unsigned wool)
23 : Animal{name, weight}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected