Which of the following is a valid class declaration? (A) class A { int x; }; (B) class B { } (C) public class A { } (D) object A { int x; };â–ºCorrect Option Correct Option is: A