In a single file, you wrote a bike class and used this line of code in the program.
bike A = bike('Acme', 111)
Which statement is true about the code in your file?
O The code to define your class (beginning with "class bike") must come after the line "bike A = bike('Acme' 111)."
The code to define your class (beginning with "class bike") must come before the line "bikeA = bike('Acme' 111)."
O The code to define your class (beginning with "class bike") cannot be in the same file as the line "bike A = bike('Acme' 111)."
O The code to define your class (beginning with "class bike") can come either before or after the line "bike A = bike('Acme' 111)."

Respuesta :

Answer:

Explanation:

Based on the available options the one that would be correct would be that the code to define your class (beginning with "class bike") must come before the line "bikeA = bike('Acme' 111)." This is because the line of code declaring the object and initializing it needs to be able to grab the information of the class that it is creating an object of. To do this, the class would need to have already been compiled by the program. It is good practice to have each class definitions as its own separate files but this is not a necessity.