CPP MCQ
Which of the following is a valid class declaration?
A)
object A { int x; };
B)
class A { int x; };
C)
public class A { }
D)
class B { }

Correct Answer : Option (B) :   class A { int x; };

Explanation : A class declaration terminates with semicolon and starts with class keyword.