C++ Programming :: Inheritance

Home > C++ Programming > Inheritance > General Questions

1 / 20

 A single sub object is inherited regardless how many times the base class occurs within the class derivation, in

Answer: Option A

Explanation:

Here is no explanation for this answer

Workspace


Tags:  No Tags on this question yet!

2 / 20

 A pointer to a base class type can be refer to an object of a derived class type, this is called

Answer: Option C

Explanation:

Here is no explanation for this answer

Workspace


Tags:  No Tags on this question yet!

3 / 20

 The programming language feature that allows the same operation to be carried out differently depending on the object is

Answer: Option A

Explanation:

Here is no explanation for this answer

Workspace


Tags:  No Tags on this question yet!

Answer: Option B

Explanation:

Here is no explanation for this answer

Workspace


Tags:  No Tags on this question yet!

5 / 20

 A class's inherited access is overrided to make an individual member's access, more

Answer: Option B

Explanation:

Here is no explanation for this answer

Workspace


Tags:  No Tags on this question yet!

6 / 20

 Compared with the classes from which they are derived, inherited classes may have

Answer: Option D

Explanation:

Here is no explanation for this answer

Workspace


Tags:  No Tags on this question yet!

Answer: Option B

Explanation:

Here is no explanation for this answer

Workspace


Tags:  No Tags on this question yet!

Answer: Option C

Explanation:

Here is no explanation for this answer

Workspace


Tags:  No Tags on this question yet!

9 / 20

 Which symbol is used to create multiple inheritance?

Answer: Option B

Explanation:

For using multiple inheritance, simply specify each base class (just like in single inheritance), separated by a comma.

Workspace


Tags:  No Tags on this question yet!

10 / 20

 Which of the following advantages we lose by using multiple inheritance?

Answer: Option C

Explanation:

The benefit of dynamic binding and polymorphism is that they help making the code easier to extend but by multiple inheritance it makes harder to track.

Workspace


Tags:  No Tags on this question yet!