Computer Science - Object Oriented Programming Using C++ - Discussion
Discussion Forum : Object Oriented Programming Using C++ - Section 3 (Q.No. 31)
31.
The function whose prototype is Item getData(void); returns _____
Discussion:
3 comments Page 1 of 1.
Nony said:
7 years ago
Yes. The answer is not anything but Item type.
Narasimha Rao said:
7 years ago
It returns an object of Item class.
Muhammad Ishaq said:
7 years ago
The return type of the above function is Item, function would return Item type not nothing. Can anyone clear this point?
In my opinion the answer is not present in the list but nothing means that the function return type is void.
In my opinion the answer is not present in the list but nothing means that the function return type is void.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers