If the program execution in c++ starts in main function, when will the programming class's object be generated during execution?
#include<iostream>
using namespace std;
class programming
{
private:
int variable;
public:
void input_value()
{
cout << "In function input_value, Enter an integer\n";
cin >> variable;
}
void output_value()
{
cout << "Variable entered is ";
cout << variable << "\n";
}
};
programming object;
main()
{
object.input_value();
object.output_value();
return 0;
}
can anybody help?