Another Good Interview Question in C++
Posted on January 2nd, 2010 at 17:10 by fr3@K

elleryq 這篇 blog post 談到的 ctor (換成 dtor 也一樣) 呼叫 virtual function 狀況 (或說是 problem) 會是很好的 C++ programmer 面試題目. 可在口試時用以窺探 interviewee 對 C++ object model 的了解.

它比公司現行筆試的題目1 來得更有深度, 要答得好得清楚知道 vtable 與 vptr 的運作方式. 包含在 construction 與 destruction 時, vptr 的變化.

你知道在這 現象 背後, 到底發生了什麼事嗎?

  1. base 與 derived 的建構/解構順序 []
del.icio.us:Another Good Interview Question in C++ digg:Another Good Interview Question in C++ spurl:Another Good Interview Question in C++ newsvine:Another Good Interview Question in C++ furl:Another Good Interview Question in C++ Y!:Another Good Interview Question in C++ 黑米共享書籤:Another Good Interview Question in C++ 推推王:Another Good Interview Question in C++
Previous Post
« 一看就知道 – 不 Thread-Safe 的 API «
Next Post
» 2009 工作回顧 »

Zero Comments »

No comments yet.

Comments RSS TrackBack URI

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>