Answer the following questions true (T) or false (F)
1. The functions or data members declared in the private: section of a class can be accessed only in the definition those functions declared in that class. Note that friend functions are also declared (but not defined) in the class to which they are friends, so they also have access to private as well as public members.
2. The set of integers ranging from -MAXINT to MAXINT make up the int data type.
1. True
Explanation: Access to members declared in the private: section of a class, function or data, is granted to those functions declared anywhere in that class, public as well as private functions. Those denied access are functions declared anywhere else.
2. False
Explanation: A data type has two parts. One, the set of values, two the set of operations.
You might also like to view...
The maximum value of an int data type in C++ is usually:about:
a) 15,000 b) 30,000 c) 64,000 d) There is no maximum value
In a value-returning method, the type of data the method returns is commonly called the method's ____________.
a. method value b. named type c. assigned value d. return type
Which of the following statements are true?
A. The class declaration file has an extension name .h and the class implementation file has an extension name .cpp. B. C++ allows you to separate class declaration from implementation. C. The class declaration and implementation are in two separate files. Both files should have the same name, but with different extension names. D. The class declaration describes the contract of the class and the class implementation implements the contract. E. The class declaration simply lists all the data fields, constructor prototypes, and the function prototypes. The class implementation implements the constructors and functions.
When text is formatted in columns, and formatting marks are visible, a ________ break appears above the text in Column Layout
A) paragraph B) page C) section D) column