Suppose there are three classes named 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

Computer Science & Information Technology

You might also like to view...

Clock speed is measured in gigahertz (GHz).

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

Answer the following statements true (T) or false (F)

1. In an entity relationship diagram, rectangles represent entities, and ovals represent relationships. 2. The elements that make up an organizational system are referred to as entities. 3. A crow's foot on each side of a relationship indicates a one-to-one relationship. 4. An associative entity joins two entities. 5. Middle managers make decisions using predetermined rules that have predictable outcomes when implemented correctly.

Computer Science & Information Technology

Which programming language adds object-oriented features to C?

a. Objective C b. PHP c. C# d. C++ e. Java

Computer Science & Information Technology

For a list of length n, the ____________________ sort makes exactly (n(n - 1))/2 key comparisons and 3(n - 1) item assignments.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology