Question 1 of 10
A Loaf object stores a weight in grams and a crust flag. Which statement correctly describes its state?
- A. The Loaf class has-a Loaf object as its only attribute.
- B. Each Loaf object has-a weight and a crust flag as part of its state.
- C. weight has-a Loaf because the field creates the object.
- D. A constructor has-a Loaf, and the object has no state of its own.