Home » C++ Programming » Classes & Objects » Question
  1. Which of the following is a valid class declaration?
    1. object A { int x; };
    2. public class A { }
    3. class A { int x; };
    4. class B { }
    5. None of these
Correct Option: C

class A { int x; };



Your comments will be displayed only after manual approval.