Pergunta de entrevista da empresa Garmin

In c++ create a class hierarchy to classify numbers using an interface number. Define classes Real/Whole, and subclasses odd/even. For each integer 0-10 inclusive, insert them into an STL structure. Iterate through the STL structure and print out the number and what subclass it is. Efficiently find the smallest number that is not less that 5.5 and print it out. All interactions should be using the Number interface.

Resposta da entrevista

Sigiloso

5 de fev. de 2018

My c++ oop skills were rusty at best, and I was unable to complete the task properly in the 2 hour time frame. I then continued to work on the exercise researching how to implement the oop structure and sent in the code directly to the recruiter. They called me a couple days later for the skype interview.