43) How many parameters does a default constructor require? a. 1 b. 2 c. 0 d. 3
时间: 2024-03-18 16:40:16 浏览: 81
详解React开发中使用require.ensure()按需加载ES6组件
c. 0.
A default constructor is a constructor that can be called with no arguments. It is used to initialize the object's data members to default values. In C++, a default constructor can be defined without any parameters, like this:
```
class MyClass {
public:
MyClass() {
// constructor code here
}
};
```
This constructor takes no parameters and initializes the object's data members to their default values.
阅读全文