55.9k views
3 votes
To create an Order template class object named backOrder and assign 0 as the

argument to the constructor, the proper syntax is ___________.

a. Order backOrder = 0;

b. Order backOrder = 0;

c. Order backOrder(0);

d. Order backOrder(0);

1 Answer

5 votes

Answer:

The answer to this question is option c

Step-by-step explanation:

In this question the correct is option c because, In the java when we create the object of the class. The default constructor will automatically call and it doesn't take any arguments. But In this question we use the parameterized constructor because it take the argument and the correct way for assign the is Order (backOrder(0);) that is option C.

User Vickiana
by
8.1k points