(A) Templates
(B) Overlaoding
(C) Data hiding
(D) Encapsulation
Author:
What is true about function templates?
(A) The compiler generates only one copy of the function template
(B) The compiler generates a copy of function respective to each type of data
(C) The compiler can only generate copy for the int type data
(D) None of the above
Which one of the following terms must relate to polymorphism?
(A) Static allocation
(B) Static typing
(C) Dynamic binding
(D) Dynamic allocation
A template provides a convenient way to make a family of?
(A) variables and data members
(B) functions and classes
(C) classes and exceptions
(D) programs and algorithms
Public Inheritance represents?
(A) “IS A” relationship
(B) ―Has A‖ relationship
(C) ―IS Special Kind of‖ relationship
(D) None of the above
Adding a derived class to a base class requires fundamental changes to the base class.
(A) True
(B) False
We can call base class constructor from derived class constructor?
(A) From derived class constructor body
(B) From the initializer list of derived class constructor
(C) From any member function of derived class
(D) We can not call the base class constructor
Consider the code below, class class1{ public: int I; }; class class2 : public class1 { }; Then int member I of class1 is __ in class2.
(A) public
(B) private
(C) protected
(D) None of the above