fowlweight.cpp

来自「深入浅出设计模式(书配套c++源代码)。包含20个设计模式的c++实现。」· C++ 代码 · 共 9 行

CPP
9
字号
// The number of birds migrating to Objective has overwhelmed the Quackologists
// who are complaining that it is hard to keep up because the journaling program
// you wrote is getting sluggish. Quackologists capture birds, categorize them, 
// weight them, tag them, and finally, record them with your program. After hours 
// of drinking coffee at Starbuzz reviewing your design, you realize that some 
// traits are common to each type of bird; its type, the sound it makes and how
// it swims. If only you could isolate the common (intrinsic) traits from the 
// unique (extrinsic) traits, its weight and tag number. Your redesign implements
// the 慒lyweight

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?