Answer to Question #50607 in C++ for Umer
one-dimensional array, using array notation with a single index. That is, statements in
main() can access their elements using expressions like a[j],even though the class
member functions must access the data using the two-step approach. Overload the subscript
(see Chapter 9, “Inheritance”) to achieve this result. Fill the arrays
with test data and then display it. Although array notation is used in the class interface in
main() to access “array” elements, you should use only pointer notation for all the operations
in the implementation (within the class member functions).
Need a fast expert's response?Submit order
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!