The prices went up alot because of taxes
Answer:
getline(cin, address);
Explanation:
Given
String object: address
Required
Statement that reads the entire line
The list of given options shows that the programming language is c++.
Analysing each option (a) to (e):
a. cin<<address;
The above instruction will read the string object until the first blank space.
Take for instance:
The user supplied "Lagos state" as input, only "Lagos" will be saved in address using this option.
b. cin address:
This is an incorrect syntax
c. getline(cin,address);
Using the same instance as (a) above, this reads the complete line and "Lagos state" will be saved in variable address
d. cin.get(address);
address is created as a string object and the above instruction will only work for character pointers (i.e. char*)
<em>From the above analysis, option (c) is correct.</em>
Answer:
B. The Active object's animation stops looping.
Explanation:
As the new event happens, the loop tells it to happen by stopping. And hence, B is the correct option out here. Neither A or C and Nor D is the correct option. The animation does not end here, and the next event takes place. Also, the active object's animation does not change the speeds. Hence, the correct option here is certainly the B.
Answer:
Destructor:-To free the resources when lifetime of an object ends.
Accessor:-To access private properties of the class.
Explanation:
The purpose of a destructor is to free the resources of the object that it has acquired during it's lifetime. A destructor is called once in the lifetime of the object that is also when the ifetime of the object ends.
The purpose of the accessors is to access private properties of the class.Accessor cannot change the value of the private members.They are also called getters.