classes

C++ Hard Interview Questions – part1

February 27, 2010 C++

1. Why don’t we have virtual constructors? The virtual mechanism, though used without the knowledge of the complete type of the object, works only on fully-constructed objects. But, in order to create an object, the user is required to provide the complete information about the object. Thus, it is not possible for a constructor to [...]

2 comments Read the full article →

C++ Medium Interview Questions – part2

January 11, 2010 C++

This post is a part of an ongoing series of C++ Interview Questions. This is Second part of the two parts of C++ interview questions with medium difficulty. These questions were handpicked by the author, who happens to be an active member in one of the largest C++ communities in Orkut which boasts to have [...]

1 comment Read the full article →

C++ Easy Interview Questions – part1

December 18, 2009 C++

This post is a part of an ongoing series of C++ Interview Questions. This is first one of the two parts of C++ interview questions. Each part consists of 5 questions along with detailed answers. What’s common in all the questions in this set is that the level of difficulty is Easy. Read Part2 of [...]

1 comment Read the full article →