You are viewing a single comment's thread. Return to all comments →
why do we have to inherit exception why cant we do it like as below?
class BadLengthException { int length;
public: BadLengthException(int n){ length =n; } int what(){ return length; }
};
Seems like cookies are disabled on this browser, please enable them to open this website
Inherited Code
You are viewing a single comment's thread. Return to all comments →
why do we have to inherit exception why cant we do it like as below?
class BadLengthException { int length;
};