In the following code, what will be the output from a.s and b.k in the main function?
#include#include using namespace std; class A {public : A() { s = “John” ;} string s; } class B { public : B() { k = 4 ; }; int k; }; int main() { A a; cout << a.s << end⌉; B b; cout << b.k << end⌉; return 0 ;}
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.