CFB Asked: November 29, 20212021-11-29T15:51:56+05:30 2021-11-29T15:51:56+05:30In: MCQWhich of the following is a valid class declaration in C++?A) class A { int x; }; B) public class A { } C) object A { int x; }; D) class B { }c++c++ class declarationclass declarationprogramming questionRelated Questions Why Every programmer should learn C++ during their careers? What is call by value and call by reference in c? Bitwise operators can operate upon? 1 AnswerVotedOldestRecentBest Answer Dayana 2021-11-29T16:14:23+05:30Added an answer on November 29, 2021 at 4:14 pm Answer: Option A) class A { int x; };Explanation: class declaration always start with a “class” keyword and end with semicolon. Hence, The answer Option A) class A { int x;};3Reply Share ShareShare on FacebookShare on TwitterShare on LinkedInShare on WhatsAppCancel the best answerLeave an answerLeave an answerCancel reply Featured image Select file Browse Add a Video to describe the problem better. Video type YoutubeVimeoDailymotionFacebookTikTok Choose from here the video type. Video ID Put Video ID here: https://www.youtube.com/watch?v=sdUUx5FdySs Ex: "sdUUx5FdySs". Answer Anonymously Save my name, email, and website in this browser for the next time I comment.
Answer: Option A) class A { int x; };
Explanation: class declaration always start with a “class” keyword and end with semicolon.
Hence, The answer Option A) class A { int x;};