Question: The code will crash because it has a bug on line 1 0 . cross out The Car class is missing setter ( ) and
The code will crash because it has a bug on line
cross out
The Car class is missing setter and getter methods
cross out
The code will crash because Car's init method cannot use colour as a parameter AND an attribute.
cross out
The code violates the principle of encapsulation on line
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
