Why is there a compile error when calling consturctor?

后端 未结 0 1052
春和景丽
春和景丽 2021-01-02 17:05
class Normal {
private:
 int v1;
 int v2;
public:
 Normal()
{
 v1 = 0;
 v2 = 0;
}
 Normal (int m, int n); 
};

 Normal::Normal(int m = 5, int n = 5) 
{
 v1 = m;
 v2          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题