InterviewSolution
Saved Bookmarks
| 1. |
Differentiate constructors and selectors? |
|
Answer» Constructors are functions that build the abstract data type. Selectors are functions that retrieve information from the data type. To create a city object, you’d use a function like city = makecity (name, lat, Ion) To extract the information of a city object, you would use functions like getname (city) |
|