A list is represented as a vector but can contain objects of ___________

A list is represented as a vector but can contain objects of ___________
A. Same class
B. Different class
C. Similar class
D. Any class
 
Answer: b
Explanation: A list can contain objects of different class. But a vector can only contain objects of the same class. A vector cannot have contain objects of the different class. Same class objects are used mostly.
 

Tìm kiếm

Back
Top