1. Determine the output of each of the following program when it is executed. (a) #include using namespace std; class abc { abc() { cout } }; int main() { } (b) abc obj; return 0; ...




1. Determine the output of each of the following program when it is executed. (a)


#include using namespace std; class abc


{


abc() {


cout <>


}


};


int main()










{






}


(b)






abc obj; return 0;




#include using namespace std; class abc


{


protected:


abc() {


cout <>


}


};


int main()


{








}



(c)




abc obj; return 0;




#include using namespace std; class abc


{


public:


void abc() {


cout <>


}


};


int main()


{








}



(d)




abc obj; return 0;




#include using namespace std; class abc


{


public:


abc() {


cout <>


}


};


int main()


{








}









(e)




abc obj; return 0;




#include using namespace std; class abc










{


public:


abc() {


cout <>


}


};


int main()


{








}



(f)




abc obj; return 0;




#include using namespace std; class abc


{


public:


static abc() {


cout <>


}


};


int main()


{








}



(g)




abc obj; return 0;




#include using namespace std; class abc


{


public:


extern abc() {


cout <>


}


};


int main()


{


abc obj; return 0;


}













May 18, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here