Assume a Map class has a member variable named position that is an instance of the Location class. The Location class has a private member variable named latitude and a public member function called getLatitude. Which of the following lines of code would correctly get and return the value stored in latitude?
A) return Location.latitude;
B) return Location.getLatitude();
C) return position.latitude;
D) return position.getLatitude();
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.