Class A
{
Int a,b;
Public:-
A(int a,int b)
{
X=a;
Y=b;
try
{
if(b==0)
throw b;
else
cout<<a/b;
}
catch(int a)
{
cout<<a; //throw;can we rethrow??then what is purpose of it??
}
};
Inscription à :
Publier les commentaires (Atom)
Aucun commentaire:
Enregistrer un commentaire