Feedback for subjective question

Report on solved past papers subjective question
Question 1:

Consider the following code segment. What will be the output of the following code segment?

class class1{
 public: class class2{
 public: class2(){
  cout << "Calling default constructor of class2 " ;
 }
 };
 class1(){
  cout << "Calling default constructor of class1 " ;
 }
};
main(){
 class1::class2 obj1;
 class1 obj2;
}

Please login to submit feedback on subjective question.

Login Now

Account Related


Earnings Related


Funds Related


Live Related


Sponsored

Theme Customizer

Gaussian Texture



Gradient Background