41. What is the main purpose of creating an abstract base class ?
Answer : dynamic binding.
42. The size of the object of the class is
Answer : sum of sizes of its data members.
43. Is implementation of virtual function is efficient to achieve a goal as compared with implementation of non-virtual function?
Answer : It is not efficient.
44. When a derived class fails to override a virtual function, then
Answer : Both, 1 and 2 are true.
45. In C++, a function contained within a class is called ____________
Answer : a member function.
46. Anonymous union means
Answer : a union having no tag name.
47. If a class D is derived from class A and class B is derived from class D, then it is called as
Answer : muli-level.
48. Variables are to data types as
Answer : objects are to classes.
49. In inheritance __________
Answer : A and B.
50. The idea behind virtual functions is to _______ the derived class object’s address into a pointer to a base class object
Answer : upcast.