class __init__() in C++
#include <iostream>
using namespace std;
class Box
{
public:
Box()
{
cout << "You started me.\n";
}
~Box()
{
cout << "I'm over, now.\n";
}
};
int main()
{
Box my_box;
}
using namespace std;
class Box
{
public:
Box()
{
cout << "You started me.\n";
}
~Box()
{
cout << "I'm over, now.\n";
}
};
int main()
{
Box my_box;
}