Computer Science - Object Oriented Programming Using C++ - Discussion
|
|
|
|
Read more:"It takes a very long time to become young."
- Pablo Picasso
|
| 6. |
The return type you code for all constructors is _____ |
| [A]. |
void | | [B]. |
the class type | | [C]. |
the same type as the first data member defined in the class | | [D]. |
no type |
Answer: Option A
Explanation:
No answer description available for this question.
|
|
Sathya said:
(Wed, Mar 9, 2011 03:46:18 AM)
|
|
| |
| Because the constructor have same name as class. |
|
Shivkumar Napit said:
(Tue, Sep 6, 2011 10:21:16 PM)
|
|
| |
| Because constructor are only used to create memory of objects,When any object is called. |
|
Shrikant said:
(Sun, Jun 17, 2012 06:23:19 PM)
|
|
| |
| Because constructors are only to allocate memory to the objects and initialize them. They do not return any value of reference to those objects. |
|
|