Inherited Code Discussions | C++ | HackerRank

Inherited Code

  • + 0 comments

    class BadLengthException { int n=0; public: BadLengthException(int x){ n+=x; } int what(){ return n; } };