Fragen im Vorstellungsgespräch bei Bloomberg L.P.: Q1 - Opened an incomplete pie... | Glassdoor.de

Frage im Vorstellungsgespräch

Senior Software Developer-Vorstellungsgespräch New York, NY (Vereinigte Staaten von Amerika)

Q1 - Opened an incomplete piece of code on Hackerrank. Some

  classes and functions were written incompletely - Shape, Square, Circle, Line. It involved concepts of virtual function, pointers, polymorphism, deleting an object when its scope ends, etc. Basic stuff.
Antwort

Antwort im Vorstellungsgespräch

1 Antwort

0

I was out of practice and it took a lot of nudging by the interviewer before I could finish it.
remember where is an object created - on heap memory, a pointer to that is created on stack memory, return the ptr to object, use this in the main function and then remember to delete the ptr. Know which function (in base class or derived class) is called in absence of a virtual function in base class.

Bewerber im Vorstellungsgespräch am 06.07.2017

Antwort oder Kommentar posten

Um dies zu kommentieren, bitte anmelden oder Konto anlegen.