A C class may have multiple constructors only if which of th

A C++ class may have multiple constructors only if which of the following conditions is true? A) the constructors have different return types B) each constructor has a matching destructor C) the constructors have different names D) the constructors have different parameter lists E) None of the answers provided

Solution

Answer 6 - D

We can define n number of constructors as long as we provide different parameters list in each constructor definition.

Answer 7 - D

Answer 8 - D

The value of x and y were 5 and 10 respectively. Inside function y is calculated as below-

y= 5+10%5

y= 5+0 =5

and x will be 5 inside the function

Answer 9 - C

Answer 10 - A

Syntax used is <Data type>* <pointer variable name> = new <Data type>

Answer 11 - D

Syntax used is - delete [] <pointer variable name>

 A C++ class may have multiple constructors only if which of the following conditions is true? A) the constructors have different return types B) each construct

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site