Ask Question
31 August, 07:26

If there are three classes, Shape, Circle and Square, what is the most likely relationship among them?

a. Square is a base class, and shape and circle are derived classes of Square.

b. Shape is a base class, and circle and square are derived classes of Shape.

c. Shape, circle and square are all sibling classes.

d. These three classes cannot be related.

+4
Answers (1)
  1. 31 August, 09:10
    0
    Answer: B) Shape is a base class, and circle and square are derived classes of Shape.

    Explanation:

    Shape is a base class because circle and squares are the shapes so these are the derived class of the shape, which is inherited by the shape like circle and square. As, the base class (shape) is the class which are derived from the other classes like circle and square and it facilitates other class which can simplified the code re-usability that is inherited from the base class. Base class is also known as parent class and the super class.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “If there are three classes, Shape, Circle and Square, what is the most likely relationship among them? a. Square is a base class, and shape ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers