Purchase Solution

Several questions about class inheritance

Not what you're looking for?

Ask Custom Question

Classes A, B, C and H are related through inheritance and have the fields shown in the class tree
diagram below. Class G is not related to any of the other classes

Please see attachment file for more details

Attachments
Purchase this Solution

Solution Summary

This solution provides detailed answers to explain several questions about class inheritance in an object oriented design.

Solution Preview

The first question asks about the derivations of classes. The arrows
in the diagram indicate "derives from". That is, if class B has an
arrow to class A that means that class B derives from class A. With
that in mind we can answer each of the given questions:

i) A is a derived class of B and B is a derived class of C.

This is false. The arrows go from C to B and B to A, not the other
way around.

ii) C is a derived class of B and B is a derived class of A.

This is tue. The arrows are heading in the correct direction.

iii) A and B are both derived classes of C.

False. Instead C derives from B (and A).

iv) B and C are both derived from A.

True. B derives ...

Purchase this Solution


Free BrainMass Quizzes
C++ Operators

This quiz tests a student's knowledge about C++ operators.

Inserting and deleting in a linked list

This quiz tests your understanding of how to insert and delete elements in a linked list. Understanding of the use of linked lists, and the related performance aspects, is an important fundamental skill of computer science data structures.

Word 2010: Tables

Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.

Excel Introductory Quiz

This quiz tests your knowledge of basics of MS-Excel.

C# variables and classes

This quiz contains questions about C# classes and variables.