PDF4PRO ⚡AMP

Modern search engine that looking for books and documents around the web

Example: dental hygienist

C++ Interview Questions Compiled by Dr. Fatih Kocan, Wael ...

C++ Interview Questions Compiled by Dr. Fatih Kocan, Wael Kdouh, and Kathryn Patterson for the Data Structures in C++ course(CSE 3358) Spring 2008 ! "# $ % & '(!) * +, - $ .+/ '( 0 ' 123 +, *&45 . 6 7 1) % 8 9 :;< =. > ?(' 8 @ BA%A8 ? 1 CED> % F =GC5- % ?(945 =H $ +I J('K< % F E :7 CE $ % > :(" Q: Is it possible to have Virtual Constructor? If yes, how? If not, Why not possible? A: There is nothing like Virtual Constructor. The Constructor can t be virtual as the constructor is a code which is responsible for creating an instance of a class and it can t be delegated to any other object by virtual keyword means. Q: What is constructor or ctor? A: Constructor creates an object and initializes it. It also creates vtable for virtual functions. It is different from other methods in a class. Q: What about Virtual Destructor? A: Yes there is a Virtual Destructor. A destructor can be virtual as it is possible as at runtime depending on the type of object caller is calling to, proper destructor will be called.))))

C++ Interview Questions Compiled by Dr. Fatih Kocan, Wael Kdouh, and Kathryn Patterson for the Data Structures in C++ course(CSE 3358) Spring 2008

Tags:

  Question, Interview, Compiled, C interview questions compiled by dr

Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Spam in document Broken preview Other abuse

Transcription of C++ Interview Questions Compiled by Dr. Fatih Kocan, Wael ...