Inherited Code Discussions | C++ | HackerRank

Inherited Code

  • + 0 comments

    try c++14 class BadLengthException : public exception{ private: int length; public: BadLengthException(int n){ length=n; } int what(){ return length; } };