1. Inheritance is the principle that
Answer: knowledge of a genral category can be applied to more specific objects
Explanation:Here is no explanation for this answer
Workspace
SAP Labs
2. What is the syntax of inheritance of class?
Answer: class name : access specifer class name
Explanation:Here is no explanation for this answer
Workspace
SAP Labs
3. What is meant by containership?
Answer: class contains objects of other class types as its members
Explanation:Here is no explanation for this answer
Workspace
SAP Labs
4. class derived: public base1, public base2 { } is an example of
Answer: Multilevel inheritance
Explanation:Here is no explanation for this answer
Workspace
SAP Labs
5. What is the difference between public and private inheritance?
Answer: Under public inheritance, public and protected members of the base class have their same status in the derived class
Explanation:Here is no explanation for this answer
Workspace
Wipro SAP Labs
6. Syntax for Pure Virtual Function is ______________ .
Answer: virtual void show()=0
Explanation:Here is no explanation for this answer
Workspace
SAP Labs
7. A virtual function that has no definition within the base class is called____________.
Answer: Pure virtual function
Explanation:Here is no explanation for this answer
Workspace
SAP Labs
8. Which is called on allocating the memory for array of objects?
Answer: constructor
Explanation:When you allocate memory for an array of objects, the default constructor must be called to construct each object. If no default constructor exists, you are stuck needing a list of pointers to objects.
Workspace
SAP Labs
9. Can a class have virtual destructor?
Answer: Yes
Explanation:Here is no explanation for this answer
Workspace
SAP Labs
10. If the copy constructor receives its arguments by value, the copy constructor would
Answer: call itself recursively
Explanation:Here is no explanation for this answer
Workspace
SAP Labs