diff --git a/2.cpp b/2.cpp new file mode 100644 index 0000000..79a7bed --- /dev/null +++ b/2.cpp @@ -0,0 +1,33 @@ + #include +using namespace std; +class A{ +public: + A(int i){a=i;b=0;} + A(int i,int j){a=i;b=j;} + void display(){cout<<"a="<