Q.

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

A. Square is a superclass, and Shape and Circle are subclasses of Square.
B. Shape is a superclass, and Circle and Square are subclasses of Shape.
C. Shape, Circle, and Square are all sibling classes.
D. These three classes cannot be related.
Answer» B. Shape is a superclass, and Circle and Square are subclasses of Shape.
942
0
Do you find this helpful?
1

View all MCQs in

Java Programming

Discussion

No comments yet