Ask Question
13 October, 16:57

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.

+2
Answers (1)
  1. 13 October, 20:24
    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?
Find 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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers