Which concept of OOP is false for C++?

Which concept of OOP is false for C++?
A. Code can be written without using classes
B. Code must contain at least one class

C. A class must have member functions
D. At least one object should be declared in code

ANSWER: B) Code must contain at least one class
Explanation : In C++, it’s not necessary to use classes, and hence codes can be written without using OOP concept. Classes may or may not contain member functions, so it’s not a necessary condition in C++. And, an object can only be declared in a code if its class is defined/included via header file.

Leave a Comment