Advertisements
Advertisements
Question
Differentiate constructors and selectors.
Distinguish Between
Solution
Constructors | Selectors |
Constructors are functions that build the abstract data type. | Selectors are functions that retrieve information from the data type. |
shaalaa.com
Constructors and Selectors
Is there an error in this question or solution?
APPEARS IN
RELATED QUESTIONS
Which of the following functions build the abstract data type?
Which of the following is constructed by placing expressions within square brackets?
Identify Which of the following are constructors and selectors?
N1 = number()
Identify Which of the following are constructors and selectors?
accetnum(n1)
Identify Which of the following are constructors and selectors?
displaynum (n1)
Identify Which of the following are constructors and selectors?
eval(a/b)
Identify Which of the following are constructors and selectors?
x, y = makeslope (m), makeslope(n)
Identify Which of the following are constructors and selectors?
display()