C++
When the sorted list inherits the linked list it must:
a ) More than one answer is correct
b ) Put in insertSorted and removeSorted methods and remove insert method
c ) Change getEntry
d) Put in removeSorted and remove the remove method
Answer: (b) Put in insertSorted and removeSorted methods and remove insert method
Reason: When sorted list inherit linked list, it must include insertSorted and removeSorted as they provide standard insertion and deletion functionality of sorted form of list. However, insert method should be removed/replaced as existing method definition may not preserve the sorted-ness of list during insertion. remove method won't matter as removing any element from sorted list doesn't disrupt the sorted-ness.
Get Answers For Free
Most questions answered within 1 hours.