Home / CSE MCQs / C++ - MCQs :: Discussion

Discussion :: C++ - MCQs

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

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    class A { int x; };


Be The First To Comment