What should be added to the class A for the program to compile successfully?
#include <iostream>
class A
{
public:
    A(const int num):_num(num){}
private:
    int _num; 
};
int main(void)
{
    A a;
    return 0;
}

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Cosmo
Sign Up Now
or Subscribe for future quizzes