云业务的基础# Programming - 葵花宝典
t*g
1 楼
You have a class that many libraries depend on. Now you need to modify the
class for one application. Which of the following changes require
recompiling all libraries before it is safe to build the application?
a. add a constructor
b. add a data member
c. change destructor into virtual
d. add an argument with default value to an existing member function
我选的是b,c
理由是它们会改变class的size
请问是对的么
谢谢!
class for one application. Which of the following changes require
recompiling all libraries before it is safe to build the application?
a. add a constructor
b. add a data member
c. change destructor into virtual
d. add an argument with default value to an existing member function
我选的是b,c
理由是它们会改变class的size
请问是对的么
谢谢!