Consider the following C++ code:
class Sample {
int a;
public:
Sample(int b)
{
a = b;
}
Sample(Sample s)
{
a = s.a;
}
};
void main()
{
Sample s(100);
Sample s1(s);
}
Referring to the above program code, what initialises the object s1?
Reveal answer
Fill a bubble to check yourself