if a class parameter of some type is declared wihout defining it's value and is only a default constructor
Answers
Answered by
0
Answer:
no-argument is your ans
Explanation:
please mark as brainlist
Answered by
0
Answer: If class A does not have a user-defined constructor and the constructor is required, the compiler implicitly declares a default constructor with no parameters.
Explanation:
- The default constructor is one that has no parameters, or if there are parameters, all parameters have default values.
- This constructor is an inline public member of that class. The compiler implicitly defines when the compiler uses this constructor to create Type A objects. The constructor has no constructor initializer and its body is null.
- Like all functions, constructors can have default arguments. These are used to initialize the member object. If the default value is specified, the argument at the end of the constructor's expression list can be omitted.
#SPJ3
Similar questions