Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.
Why would you define a getSize() function instead of having the application access the size of the linked list directly?
A) You use the getSize() function instead of having the application access the size of the linked list directly to protect the data from inadvertently being changed by the application.
Explanation: If the application needs to change the data, then the appropriate function is called and the function changes the data.
This Question is not yet answered!
Related Answered Questions
Related Open Questions