Question:medium

One of the valid C++ class declaration is:

Show Hint

C++ is case-sensitive. Always write class in lowercase and end the class declaration with a semicolon.
Updated On: May 18, 2026
  • Class B {}
  • class B { int x; };
  • Public class B {}
  • Object B { int x; };
Show Solution

The Correct Option is B

Solution and Explanation

Was this answer helpful?
0


Questions Asked in CUET (PG) exam