Question: Detect an error from the program below: class no 1 2 3 { public: int a , b ; no 1 2 3 ( int

Detect an error from the program below:
class no123{
public:
int a,b;
no123(int a, int b){
a=a;
b=b;,
} ;
a. no123 should be 123 no
b. there should not be ; after the }
c. no errors
d. duplicated variable names a and b
 Detect an error from the program below: class no123{ public: int

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!