Programing IN C++ : part 6

Programing IN C++


 *      What is an explicit constructor?

*      A conversion constructor declared with the explicit keyword. The compiler does not use an explicit constructor to implement an implied conversion of types. Its purpose is reserved explicitly for construction.

*      What is the Standard Template Library?

*      A library of container templates approved by the ANSI committee for inclusion in the standard C++ specification.

*      An applicant who then launches into a discussion of the generic programming model, iterators, allocators, algorithms, and such, has a higher than average understanding of the new technology that STL brings to C++ programming.

*      Describe run-time type identification.

*      The ability to determine at run time the type of an object by using the typeid operator or the dynamic_cast operator.

*      What problem does the namespace feature solve?

*      Multiple providers of libraries might use common global identifiers causing a name collision when an application tries to link with two or more such libraries. The name-space feature surrounds a library’s external declarations with a unique namespace that eliminates the potential for those collisions.

*      This solution assumes that two library vendors don’t use the same namespace, of course.

*      Are there any new intrinsic (built-in) data types?

*      Yes. The ANSI committee added the bool intrinsic type and its true and false value keywords and the wchar_t data type to support character sets wider than eight bits.

Other apparent new types (string, complex, and so forth) are implemented as classes in the Standard C++ Library rather than as intrinsic types.
Anic_an_engineer

Hi, I am Anic an IT Professional . I like to share my knowledge and experience. Thanks for visiting my site.

Please Select Embedded Mode To Show The Comment System.*

Previous Post Next Post