Answer the following statements true (T) or false (F)
1. If, in a class, one uses the keyword public:, it affects only the member that immediately follows the keyword public, making this member accessible to any other function defined anywhere.
2. There is no access to private members of a class by any function defined outside the class.
3. A data type is a collection of a set of values together with a set of basic operations defined on the values.
4. An abstract data type is a collection of a set of values together with a set of basic operations defined on the values.
1. False
The effect of the public: keyword is from the keyword to the next private: keyword, so there is a region where anything that is there defined is public, not just a single member. The remark about access is correct.
2. True.
In a class, the all members defined after a keyword private: and before the next public: keyword are called private members. Access to private members by functions defined outside the class is prohibited. (Note: This ignores the issue of friend functions, which will be treated in a later chapter.)
3. True
Examples of a data type are int with +_*/% and other operations, double with +_*/.
4. false
To qualify as an abstract data type, a data type must conceal the details of how the operations and values are implemented. The operations should be sufficiently documented that one can use them without knowing the implementation.
You might also like to view...
____________________ works like a DoS, but the attack comes from many IP addresses, so the defense is more complicated.?
Fill in the blank(s) with the appropriate word(s).
Using the saved output, identify the port numbers of the FTP client and the FTP server.
What will be an ideal response?
The ____ Transport layer protocol is used by network applications that do not require the same level of reliability as offered by TCP.
A. IP B. UDP C. FTP D. NCP
Once a file has been saved as a template, you cannot edit the actual template file — you must create a new document and then save it as a template
Indicate whether the statement is true or false