Q. If there are three classes: Shape, Circle, and Square, what is the most likely relationship between them? (Solved)

1. Square is a superclass, and Shape and Circle are subclasses of Square.

2. Shape is a superclass, and Circle and Square are subclasses of Shape.

3. Shape, Circle, and Square are all sibling classes.

4. These three classes cannot be relate

  • b. Shape is a superclass, and Circle and Square are subclasses of Shape.
Subscribe Now

Get All Updates & News