Answer:
Explanation:
Use composition when you can, private inheritance when you have to. Normally you don't want to have access to the internals of too many other classes, and private inheritance gives you some of this extra power
Answer:
input.open("rawdata");
input>>datum;
input.close();
Explanation:
ifstream objects maintain a filebuf object as their internal stream buffer, and perform operations like input/output on the available associated files.
In above statements.
input.open("rawdata");
- The associated file named rawdata is opened.
input>>datum;
- The integer from the file is read into already declared variable datum.
input.close();
<span>Which is not a component of a database that describes how data is stored?</span>
Answer:
The correct option for the given question is option(b) i.e 72 = amount;
Explanation:
In the option(a) the total variable store the value 9 which is a valid assignment
In the option(b) 72 is not a variable because the variable will never start with a numeric number. Therefore it is not a valid assignment statement.
In the option(c) the yourAge variable store the value of myAge variable which is a valid assignment.
So correct answer is an option(b).