99. Constructors-I

Question.6

A developer defines a parameterized constructor and then tries to create an object without arguments:

class Config {
   int timeout;
public:
   Config(int t) : timeout(t) {}
};

Config c;  // No arguments

Will this compile?

Need Help? Refer to the Quick Guide below

Select Answer