Skip to content
free
K
1
2
practice
Home
Math
English
Science
Social Studies
Contact
Language
English
Español
Sign In
/
High School Electives
/
Computer Science
/
Composition versus Inheritance
Grade Level
Computer Science
HSCS.143 Composition versus Inheritance
0%
Skill Level
🔴 Hard
00:00
Progress to Next Level
25% to Medium
Easy
Medium
Hard
Mastery
100%
A base class calls an overridable method from its constructor. A subclass depends on fields that are not initialized yet, causing a bug. What does this show about inheritance?
A
Composition always calls subclass constructors first.
B
The subclass should access more protected superclass fields.
C
Superclass-subclass interactions can create fragile initialization coupling.
D
The bug proves constructors should never be used in Java.
Submit Answer