Google News
logo
CPP - Interview Questions
How is object-oriented programming different from procedural programming in C++?
In object-oriented programming, the entire program is divided into smaller units called objects and works on the bottom-up approach. Whereas, in procedural programming, the entire program is divided into smaller units called functions and works on the top-down approach.
 
In a nutshell, procedural programming does not provide any data security whereas, in contrast to it, object-oriented programming ensures data security with the help of access specifiers, proving to be more secure and efficient.
 
C++ supports object-oriented programming whereas C supports procedural programming.
Advertisement