#include<iostream.h>
class A
{
public: A(int i){a=i;} void setA(int i) const{a=i;} int getA(){return a;} int getB() const {return b;}
private: int a; const int b=0;
};
int main()
{ const A a1(1); cout<<"A="<<a1,getA()<<endl; cout<<"B="<<a1.getB()<<endl; return 0;
}
class A
{
public: A(int i):b(0){a=i;} void setA(int i) {a=i;} int getA(){return a;} int getB() const {return b;}
private: int a; const int b;
};
int main()
{ A a1(1); cout<<"A="<<a1.getA()<<endl; cout<<"B="<<a1.getB()<<endl; return 0;
}