Professional Documents
Culture Documents
#include<string>
using namespace std;
}
};
}
};
float getSold() {
return this->sold;
}
};
/*class ExceptieSumaNegativa {
private:
string mesaj;
public:
ExceptieSumaNegativa(string mesaj) {
this->mesaj = mesaj;
}
//is a
class ContBancarOnline:public ContBancar {
public:
string token;
ContBancarOnline():ContBancar(){
};
class ContRevolut {
private:
ContBancarOnline* listaConturi[100]; //vector alocat static ce stocheaza
pointer la obiecte
int nrConturi;
public:
//to do
};
int main()
{
//ITranzactionabil obj; do not pt ca are metode virtuale pure
ITranzactionabil *pObj;
//ITranzactionabil vObj[100]; //do not
ITranzactionabil *pVObj[100];
//gestiune exceptii
ContBancar cb2(1400, "lei");
try {
cb2.depunere(200);
cb2.retragere(3000);
}
catch (exception ex) {
cout << ex.what();
};