Search for question
Question

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

A { int x; }

Fig: 1

Fig: 2

Fig: 3

Fig: 4

Fig: 5