Describe in terms of who needs access to class members why the public members should come first in a class definition.
What will be an ideal response?
The client is more interested in the public members. The client cannot access the private members, and thus has no real (direct) use for them. Hence the public members should be placed first in a class.
Computer Science & Information Technology
You might also like to view...
What is the efficiency of merge sort?
a. O(log n). b. O(n). c. O(n log n). d. O(n2).
Computer Science & Information Technology
If you turn off ____ scrolling you can scroll through each document individually.
A. asynchronous B. synchronous C. tiered D. hierarchical
Computer Science & Information Technology