Q&A Categories

Why would you define a getSize() function instead of having the application access the size of the linked

Sep

7

2010

Why would you define a getSize() function instead of having the application access the size of the linked list directly? Skill/Topic: Stacks and Queues: Insert, Delete, Peek, FindA) 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.’

In: Data-Structures Asked By: faiz [ Grey Star Level]

Answer this Question

You must be Logged In to post an Answer.

Not a member yet? Sign Up Now »

Star Points Scale

Earn points for Asking and Answering Questions!

Grey Sta Levelr [1 - 25 Grey Star Level]
Green Star Level [26 - 50 Green Star Level]
Blue Star Level [51 - 500 Blue Star Level]
Orange Star Level [501 - 5000 Orange Star Level]
Red Star Level [5001 - 25000 Red Star Level]
Black Star Level [25001+ Black Star Level]