求教一道C++理论题
3. How many ways of reusing are there in the class hierarchy?
a) 1
b) 2
c) 3
d) 4
View Answer
Answer: b
Explanation: Class hierarchies promote reuse in two ways. They are code sharing and interface sharing.
题源:https://www.sanfoundry.com/c-plus-plus-quiz-design-class-hierarchies/
想问问 code sharing and interface sharing分别译为什么?如何实现?