#include<iostream> using namespace std; class A { private: int n; int m; public: A(){} A(A&one){this->n=one.n;this->m=one.m;} A(int i,int j){n=i;m=j;} void print(){cout<<"n:"<<n<<",m:"<<m<<endl;} }; int main() { A a(2,4); a.print(); A b(a); b.print(); return 0; }