Explain why data members, in particular should be placed in the private section of a class.
What will be an ideal response?
A C++ class contains a complete list of all the functions that can access the private members of that class. This ensures complete control of the private data. This property is important for understanding a program in general. If the data were not private, the client programmer could corrupt the data in any way that the client sees fit. This has considerable potential for mischief.
You might also like to view...
If an element's position is declared as absolute then ________.
a) positioning of the element is handled by the browser b) positioning is handled by the normal flow of elements on the page c) positioning is set according to the margins of its parent element d) positioning is handled by relative positioning
Which of the following determines the amount of space a field uses in the database?
What will be an ideal response?
Which of the following firewall rules only denies DNS zone transfers?
A. deny udp any any port 53 B. deny ip any any C. deny tcp any any port 53 D. deny all dns packets
A(n) ____ is an object that has been created from an existing class.
A. instance B. interface C. template D. black box