123456789
class eggs { int x; }; int main() { eggs a; // creates an instance of the class eggs }
class bummer { public: bummer(const bummer &) {}; }; int main() { bummer b(b); }
123456789101112131415161718192021222324
#include<iostream> using namespace std; class name { public: void learncplusplus(); }; void name::learncplusplus() { cout<<"learn man about classes,and dont wait from the forum."; } int main() { name n; n.learncplusplus(); }