Get detailed and accurate responses to your questions with IDNLearn.com. Our platform is designed to provide quick and accurate answers to any questions you may have.

Place the code in the correct order. Assume the indenting will be correct in the program.
Third part
Second part
First part

A. class car:
model = "
year = 0
B. :: myCar = car()
C. :: myCar.model = 'Thunderbird'


Sagot :

Answer:

The correct order is A, B, C

Explanation:

Required

Place A, B and C in the correct order

The unordered code is an illustration of class and object in programming language.

First, the class must be defined. This is done in (A)

class car{model= " "; year= 0;}

Next, an instance of the class must be created. This is done in (B).

car myCar = new car();

Lastly, the objects of the class can be updated. This is done in (C) where model is set to Thunderbird