Suppose we have a class named "Car" with an instance variable "brand" and a constructor that takes in a "brand" parameter. Which of the following lines of code should be written inside the constructor so that the "brand" instance variable is correctly set to the “brand” parameter?




© 2024 Fiveable Inc. All rights reserved.
AP® and SAT® are trademarks registered by the College Board, which is not affiliated with, and does not endorse this website.

© 2024 Fiveable Inc. All rights reserved.
AP® and SAT® are trademarks registered by the College Board, which is not affiliated with, and does not endorse this website.