Question: Given the following constructor declaration: sample ( int a , int b = 6 , int c = 8 ) ; Which of the following

Given the following constructor declaration:
sample (int a, int b=6, int c=8);
Which of the following statements would fail to create an object of the class sample?
a. sample object3(5,6);
b. sample object2(5);
c. sample object1(4,5,6);
d. sample object4;

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!