classA{public:A(){
a =10;
b =20;
c =30;
d ='S';}voidPrint(){
cout << a <<" "<< b <<" "<< c <<" "<< d << endl;}private:int a;int b;int c;char d;};
带参构造函数
classA{public:A(int pa,int pb,int pc,int pd){
a = pa;
b = pb;
c = pc;
d = pd;}voidPrint(){
cout << a <<" "<< b <<" "<< c <<" "<< d << endl;}private:int a;int b;int c;char d;};
构造函数是可以进行函数重载的,也就是说函数名可以相同,只要参数那边不同就可以。
classA{public:A(int pa,int pb,int pc,int pd){
a = pa;
b = pb;
c = pc;
d = pd;}A(){
a =10;
b =20;
c =30;
d ='S';}voidPrint(){
cout << a <<" "<< b <<" "<< c <<" "<< d << endl;}private:int a;int b;int c;char d;};
背景
公司 IT 规模小,开发提测质量差,流程不规范,导致测试任务重,于是推行 :IT_开发提测标准规范,正文如下;拟定开发提测标准规范后,测试与项目经理内部评审后,发至IT群…