Virtual Functions

  • + 1 comment

    I had thought about adding validations into my code but decided to wait until I got a response on the tests. Amazingly enough, the code passed without the validations. Obviously the unit tests are not enforcing the data constraints proscribed in the requirements. In my opinion, this is a deficiency in the example. That said, I thought this was a nice, little exercise in C++ OOP and polymorphism.