Explanation: Classes are the most important building blocks of any object- oriented systems. Classes are used to capture the vocabulary of the system you are developing. Modeling a system involves identifying the things that are important to your particular view. Hence all the above mentioned properties would distinguish each class from one another. 6) A ________ is a special member function whose task is to initialize the objects of its class.
A. Constructor
B. Destructor
C. Selector
D. Iterator
Answer:A
Explanation: Classes are the most important building blocks of any object- oriented systems. Classes are used to capture the vocabulary of the system you are developing. Modeling a system involves identifying the things that are important to your particular view. Hence all the above mentioned properties would distinguish each class from one another. 6) A ________ is a special member function whose task is to initialize the objects of its class.
A. Constructor B. Destructor C. Selector D. Iterator
Explanation: Constructors are special because its name is same as the class name. The constructor is invoked whenever an object of its associated class is created. It is called constructor because it constructs the value of data members of the class. 7) Which of the following statements about a constructor is not true?