Q. Which of the following statements is true about C++ classes?
β
Correct Answer: (B)
A class can have both data members and member functions.
Explanation: In C++, a class can contain both data members and member functions.