Home »
MCQs »
C++ MCQs
Which of the following statement is correct about class in C++?
166. Which of the following statement is correct about class in C++?
- Class is an instance that contains data member and member functions.
- Class is fundamental that contains data member and member functions.
- Class is a blueprint for a data type that encapsulates data member and member functions.
- None of the above
Answer: C) Class is a blueprint for a data type that encapsulates data member and member functions.
Explanation:
Class is a blueprint for a data type that encapsulates data member and member functions.