Q. Which of the following is the correct way to define a class in C++?
β
Correct Answer: (D)
All of the above
Explanation: All the options are valid ways to define a class in C++.