Default constructor: A no-argument constructor provided by Java if no constructors are written; it initializes fields to default values.
How to apply it: Recognize that writing any constructor removes the default; a no-arg constructor must then be explicitly defined.
Course: AP Computer Science A · Unit: Writing Classes
Practice questions about Default constructor on AimFive — get rubric-based feedback showing exactly which points you earned.
AP and Advanced Placement are trademarks of College Board. AimFive is not affiliated with or endorsed by College Board.