Home »
MCQs »
OOPs MCQs
Which one of the following defines correct differences between structure and class?
50. Which one of the following defines correct differences between structure and class?
- Structure only holds the data, classes hold the data and functions
- The structure holds the data and functions, classes only hold the data
- The structure is the instance of the class, classes are a set of objects
- Members of structure and class can be both public and private
Answer: A) Structure only holds the data, classes hold the data and functions
Explanation:
Structure only holds the data and Classes hold the data and functions both.