In C++, what does a class hold?
Show answerHide answer
Correct answer: (C) Data and functions
Explanation
A C++ class bundles data members and member functions together into one unit, which is encapsulation.
Correct answer: (C) Data and functions
Explanation
A C++ class bundles data members and member functions together into one unit, which is encapsulation.
This is question 99 of BPSC TRE 2.0 (2023) Computer Science Class 11-12 — Previous Year Paper. See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.